32 |
55 |
78 |
101 |
126 |
146 | 160 | Also check out the gallery 161 | to see what others in 162 | the community have created with TensorFlow.js. 163 |
164 |
173 | ├── .firebaserc ├── .babelrc ├── scaffolds ├── draft.md ├── page.md └── post.md ├── source ├── api │ ├── 0.10.0 │ │ └── index.md │ ├── 0.11.1 │ │ └── index.md │ ├── 0.11.2 │ │ └── index.md │ ├── 0.11.6 │ │ └── index.md │ ├── 0.11.7 │ │ └── index.md │ ├── 0.12.0 │ │ └── index.md │ ├── 0.12.5 │ │ └── index.md │ ├── 0.13.0 │ │ └── index.md │ ├── 0.13.3 │ │ └── index.md │ ├── 0.14.1 │ │ └── index.md │ ├── 0.6.0 │ │ └── index.md │ ├── 0.6.1 │ │ └── index.md │ ├── 0.7.0 │ │ └── index.md │ ├── 0.8.0 │ │ └── index.md │ ├── 0.9.0 │ │ └── index.md │ └── latest │ │ └── index.md ├── images │ ├── ml5.png │ ├── favicon.png │ ├── mnist_3.png │ ├── mnist_4.png │ ├── mnist_8.png │ ├── tfjs-vis.png │ ├── TF_JS_lockup.png │ ├── coding-train.png │ ├── tfjs-models.png │ ├── TF_JS_twitter.png │ ├── fit_curve_data.png │ ├── mnist_learned.png │ ├── tfjs-examples.png │ ├── baseball_preview.png │ ├── fit_curve_learned.png │ ├── fit_curve_random.png │ ├── pacman-controller.png │ ├── posenet_preview.jpg │ ├── EmojiScavengerHunt.png │ ├── fit_curve_function.png │ ├── performance_rnn_preview.jpg │ └── teachablemachine_preview.jpg ├── index.md ├── _data │ └── api │ │ ├── 0.10.0 │ │ ├── docs_manifest.json │ │ └── skeleton.json │ │ ├── 0.6.1 │ │ ├── docs_manifest.json │ │ └── skeleton.json │ │ ├── 0.7.0 │ │ ├── docs_manifest.json │ │ └── skeleton.json │ │ ├── 0.8.0 │ │ ├── docs_manifest.json │ │ └── skeleton.json │ │ ├── 0.9.0 │ │ ├── docs_manifest.json │ │ └── skeleton.json │ │ ├── 0.11.1 │ │ ├── docs_manifest.json │ │ └── skeleton.json │ │ ├── 0.11.2 │ │ ├── docs_manifest.json │ │ └── skeleton.json │ │ ├── 0.11.6 │ │ ├── docs_manifest.json │ │ └── skeleton.json │ │ ├── 0.11.7 │ │ ├── docs_manifest.json │ │ └── skeleton.json │ │ ├── 0.12.0 │ │ ├── docs_manifest.json │ │ └── skeleton.json │ │ ├── 0.12.5 │ │ ├── docs_manifest.json │ │ ├── tfjs-converter.json │ │ └── skeleton.json │ │ ├── 0.13.0 │ │ ├── docs_manifest.json │ │ ├── tfjs-converter.json │ │ └── skeleton.json │ │ ├── 0.13.3 │ │ ├── docs_manifest.json │ │ ├── tfjs-converter.json │ │ └── skeleton.json │ │ ├── 0.14.1 │ │ ├── docs_manifest.json │ │ └── tfjs-converter.json │ │ └── api_manifest.json ├── setup │ └── index.md ├── debug │ └── index.html ├── tutorials │ ├── index.md │ ├── import-keras.md │ ├── custom-webgl-op.md │ ├── import-saved-model.md │ └── how-to-get-started.md ├── faq │ └── index.md └── demos │ └── index.md ├── themes └── dljs │ ├── _config.yml │ ├── layout │ ├── page.hbs │ ├── partials │ │ ├── apiHeading.hbs │ │ ├── apiSubhead.hbs │ │ ├── footer.hbs │ │ ├── apiClass.hbs │ │ ├── apiParamList.hbs │ │ ├── apiFunction.hbs │ │ ├── apiToc.hbs │ │ └── header.hbs │ ├── api.hbs │ ├── layout.hbs │ └── setup.hbs │ ├── source │ ├── js │ │ ├── layout.js │ │ ├── api.js │ │ └── codeSnippets.js │ └── css │ │ ├── vendor │ │ ├── codemirror-railscasts.css │ │ └── highlight-railscasts.css │ │ └── api.scss │ └── helper │ └── index.js ├── .gitignore ├── firebase.json ├── .gitmodules ├── tsconfig.json ├── .vscode ├── tasks.json └── settings.json ├── _config.yml ├── package.json └── README.md /.firebaserc: -------------------------------------------------------------------------------- 1 | {} 2 | -------------------------------------------------------------------------------- /.babelrc: -------------------------------------------------------------------------------- 1 | { 2 | "presets": [ 3 | "es2015" 4 | ] 5 | } -------------------------------------------------------------------------------- /scaffolds/draft.md: -------------------------------------------------------------------------------- 1 | --- 2 | title: {{ title }} 3 | tags: 4 | --- 5 | -------------------------------------------------------------------------------- /scaffolds/page.md: -------------------------------------------------------------------------------- 1 | --- 2 | title: {{ title }} 3 | date: {{ date }} 4 | --- 5 | -------------------------------------------------------------------------------- /scaffolds/post.md: -------------------------------------------------------------------------------- 1 | --- 2 | title: {{ title }} 3 | date: {{ date }} 4 | tags: 5 | --- 6 | -------------------------------------------------------------------------------- /source/api/0.10.0/index.md: -------------------------------------------------------------------------------- 1 | --- 2 | title: 0.10.0 3 | layout: api 4 | --- 5 | 6 | 7 | -------------------------------------------------------------------------------- /source/api/0.11.1/index.md: -------------------------------------------------------------------------------- 1 | --- 2 | title: 0.11.1 3 | layout: api 4 | --- 5 | 6 | 7 | -------------------------------------------------------------------------------- /source/api/0.11.2/index.md: -------------------------------------------------------------------------------- 1 | --- 2 | title: 0.11.2 3 | layout: api 4 | --- 5 | 6 | 7 | -------------------------------------------------------------------------------- /source/api/0.11.6/index.md: -------------------------------------------------------------------------------- 1 | --- 2 | title: 0.11.6 3 | layout: api 4 | --- 5 | 6 | 7 | -------------------------------------------------------------------------------- /source/api/0.11.7/index.md: -------------------------------------------------------------------------------- 1 | --- 2 | title: 0.11.7 3 | layout: api 4 | --- 5 | 6 | 7 | -------------------------------------------------------------------------------- /source/api/0.12.0/index.md: -------------------------------------------------------------------------------- 1 | --- 2 | title: 0.12.0 3 | layout: api 4 | --- 5 | 6 | 7 | -------------------------------------------------------------------------------- /source/api/0.12.5/index.md: -------------------------------------------------------------------------------- 1 | --- 2 | title: 0.12.5 3 | layout: api 4 | --- 5 | 6 | 7 | -------------------------------------------------------------------------------- /source/api/0.13.0/index.md: -------------------------------------------------------------------------------- 1 | --- 2 | title: 0.13.0 3 | layout: api 4 | --- 5 | 6 | 7 | -------------------------------------------------------------------------------- /source/api/0.13.3/index.md: -------------------------------------------------------------------------------- 1 | --- 2 | title: 0.13.3 3 | layout: api 4 | --- 5 | 6 | 7 | -------------------------------------------------------------------------------- /source/api/0.14.1/index.md: -------------------------------------------------------------------------------- 1 | --- 2 | title: 0.14.1 3 | layout: api 4 | --- 5 | 6 | 7 | -------------------------------------------------------------------------------- /source/api/0.6.0/index.md: -------------------------------------------------------------------------------- 1 | --- 2 | title: 0.6.0 3 | layout: api 4 | --- 5 | 6 | 7 | -------------------------------------------------------------------------------- /source/api/0.6.1/index.md: -------------------------------------------------------------------------------- 1 | --- 2 | title: 0.6.1 3 | layout: api 4 | --- 5 | 6 | 7 | -------------------------------------------------------------------------------- /source/api/0.7.0/index.md: -------------------------------------------------------------------------------- 1 | --- 2 | title: 0.7.0 3 | layout: api 4 | --- 5 | 6 | 7 | -------------------------------------------------------------------------------- /source/api/0.8.0/index.md: -------------------------------------------------------------------------------- 1 | --- 2 | title: 0.8.0 3 | layout: api 4 | --- 5 | 6 | 7 | -------------------------------------------------------------------------------- /source/api/0.9.0/index.md: -------------------------------------------------------------------------------- 1 | --- 2 | title: 0.9.0 3 | layout: api 4 | --- 5 | 6 | 7 | -------------------------------------------------------------------------------- /source/api/latest/index.md: -------------------------------------------------------------------------------- 1 | --- 2 | title: 0.14.1 3 | layout: api 4 | --- 5 | 6 | 7 | -------------------------------------------------------------------------------- /source/images/ml5.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/0101011/tfjs-website/master/source/images/ml5.png -------------------------------------------------------------------------------- /themes/dljs/_config.yml: -------------------------------------------------------------------------------- 1 | # Do not delete. 2 | node_sass: 3 | includePaths: ['./node_modules/'] 4 | -------------------------------------------------------------------------------- /source/images/favicon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/0101011/tfjs-website/master/source/images/favicon.png -------------------------------------------------------------------------------- /source/images/mnist_3.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/0101011/tfjs-website/master/source/images/mnist_3.png -------------------------------------------------------------------------------- /source/images/mnist_4.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/0101011/tfjs-website/master/source/images/mnist_4.png -------------------------------------------------------------------------------- /source/images/mnist_8.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/0101011/tfjs-website/master/source/images/mnist_8.png -------------------------------------------------------------------------------- /source/index.md: -------------------------------------------------------------------------------- 1 | --- 2 | title: TensorFlow.JS 3 | date: 2018-02-22 14:50:37 4 | layout: index 5 | --- 6 | -------------------------------------------------------------------------------- /source/images/tfjs-vis.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/0101011/tfjs-website/master/source/images/tfjs-vis.png -------------------------------------------------------------------------------- /source/images/TF_JS_lockup.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/0101011/tfjs-website/master/source/images/TF_JS_lockup.png -------------------------------------------------------------------------------- /source/images/coding-train.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/0101011/tfjs-website/master/source/images/coding-train.png -------------------------------------------------------------------------------- /source/images/tfjs-models.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/0101011/tfjs-website/master/source/images/tfjs-models.png -------------------------------------------------------------------------------- /source/images/TF_JS_twitter.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/0101011/tfjs-website/master/source/images/TF_JS_twitter.png -------------------------------------------------------------------------------- /source/images/fit_curve_data.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/0101011/tfjs-website/master/source/images/fit_curve_data.png -------------------------------------------------------------------------------- /source/images/mnist_learned.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/0101011/tfjs-website/master/source/images/mnist_learned.png -------------------------------------------------------------------------------- /source/images/tfjs-examples.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/0101011/tfjs-website/master/source/images/tfjs-examples.png -------------------------------------------------------------------------------- /source/images/baseball_preview.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/0101011/tfjs-website/master/source/images/baseball_preview.png -------------------------------------------------------------------------------- /source/images/fit_curve_learned.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/0101011/tfjs-website/master/source/images/fit_curve_learned.png -------------------------------------------------------------------------------- /source/images/fit_curve_random.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/0101011/tfjs-website/master/source/images/fit_curve_random.png -------------------------------------------------------------------------------- /source/images/pacman-controller.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/0101011/tfjs-website/master/source/images/pacman-controller.png -------------------------------------------------------------------------------- /source/images/posenet_preview.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/0101011/tfjs-website/master/source/images/posenet_preview.jpg -------------------------------------------------------------------------------- /source/images/EmojiScavengerHunt.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/0101011/tfjs-website/master/source/images/EmojiScavengerHunt.png -------------------------------------------------------------------------------- /source/images/fit_curve_function.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/0101011/tfjs-website/master/source/images/fit_curve_function.png -------------------------------------------------------------------------------- /source/_data/api/0.10.0/docs_manifest.json: -------------------------------------------------------------------------------- 1 | { 2 | "tfjsVersion": "0.10.0", 3 | "coreVersion": "v0.8.1", 4 | "layersVersion": "v0.5.0" 5 | } -------------------------------------------------------------------------------- /source/_data/api/0.6.1/docs_manifest.json: -------------------------------------------------------------------------------- 1 | { 2 | "tfjsVersion": "0.6.1", 3 | "coreVersion": "v0.6.0", 4 | "layersVersion": "v0.1.2" 5 | } -------------------------------------------------------------------------------- /source/_data/api/0.7.0/docs_manifest.json: -------------------------------------------------------------------------------- 1 | { 2 | "tfjsVersion": "0.7.0", 3 | "coreVersion": "v0.6.0", 4 | "layersVersion": "v0.2.0" 5 | } -------------------------------------------------------------------------------- /source/_data/api/0.8.0/docs_manifest.json: -------------------------------------------------------------------------------- 1 | { 2 | "tfjsVersion": "0.8.0", 3 | "coreVersion": "v0.6.1", 4 | "layersVersion": "v0.3.0" 5 | } -------------------------------------------------------------------------------- /source/_data/api/0.9.0/docs_manifest.json: -------------------------------------------------------------------------------- 1 | { 2 | "tfjsVersion": "0.9.0", 3 | "coreVersion": "v0.7.1", 4 | "layersVersion": "v0.4.0" 5 | } -------------------------------------------------------------------------------- /source/images/performance_rnn_preview.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/0101011/tfjs-website/master/source/images/performance_rnn_preview.jpg -------------------------------------------------------------------------------- /source/images/teachablemachine_preview.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/0101011/tfjs-website/master/source/images/teachablemachine_preview.jpg -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | node_modules 2 | public 3 | .cache 4 | db.json 5 | libs 6 | .DS_Store 7 | source/_data/api/local 8 | source/api/local 9 | 10 | -------------------------------------------------------------------------------- /source/_data/api/0.11.1/docs_manifest.json: -------------------------------------------------------------------------------- 1 | { 2 | "tfjsVersion": "0.11.1", 3 | "coreVersion": "v0.11.0", 4 | "layersVersion": "v0.6.1" 5 | } -------------------------------------------------------------------------------- /source/_data/api/0.11.2/docs_manifest.json: -------------------------------------------------------------------------------- 1 | { 2 | "tfjsVersion": "0.11.2", 3 | "coreVersion": "v0.11.1", 4 | "layersVersion": "v0.6.2" 5 | } -------------------------------------------------------------------------------- /source/_data/api/0.11.6/docs_manifest.json: -------------------------------------------------------------------------------- 1 | { 2 | "tfjsVersion": "0.11.6", 3 | "coreVersion": "v0.11.6", 4 | "layersVersion": "v0.6.6" 5 | } -------------------------------------------------------------------------------- /source/_data/api/0.11.7/docs_manifest.json: -------------------------------------------------------------------------------- 1 | { 2 | "tfjsVersion": "0.11.7", 3 | "coreVersion": "v0.11.9", 4 | "layersVersion": "v0.6.7" 5 | } -------------------------------------------------------------------------------- /source/_data/api/0.12.0/docs_manifest.json: -------------------------------------------------------------------------------- 1 | { 2 | "tfjsVersion": "0.12.0", 3 | "coreVersion": "v0.12.0", 4 | "layersVersion": "v0.7.0" 5 | } -------------------------------------------------------------------------------- /source/setup/index.md: -------------------------------------------------------------------------------- 1 | --- 2 | title: setup 3 | align: center 4 | date: 2018-12-10 10:38:08 5 | bannerText: Setup TensorFlow.js 6 | layout: setup 7 | --- 8 | 9 | -------------------------------------------------------------------------------- /source/_data/api/0.12.5/docs_manifest.json: -------------------------------------------------------------------------------- 1 | { 2 | "tfjsVersion": "0.12.5", 3 | "coreVersion": "v0.12.11", 4 | "layersVersion": "v0.7.4", 5 | "converterVersion": "v0.5.7" 6 | } -------------------------------------------------------------------------------- /source/_data/api/0.13.0/docs_manifest.json: -------------------------------------------------------------------------------- 1 | { 2 | "tfjsVersion": "0.13.0", 3 | "coreVersion": "v0.13.0", 4 | "layersVersion": "v0.8.0", 5 | "converterVersion": "v0.6.0" 6 | } -------------------------------------------------------------------------------- /source/_data/api/0.13.3/docs_manifest.json: -------------------------------------------------------------------------------- 1 | { 2 | "tfjsVersion": "0.13.3", 3 | "coreVersion": "v0.13.8", 4 | "layersVersion": "v0.8.3", 5 | "converterVersion": "v0.6.5" 6 | } -------------------------------------------------------------------------------- /firebase.json: -------------------------------------------------------------------------------- 1 | { 2 | "hosting": { 3 | "public": "public", 4 | "ignore": [ 5 | "firebase.json", 6 | "**/.*", 7 | "**/node_modules/**" 8 | ] 9 | } 10 | } 11 | -------------------------------------------------------------------------------- /source/_data/api/0.14.1/docs_manifest.json: -------------------------------------------------------------------------------- 1 | { 2 | "tfjsVersion": "0.14.1", 3 | "coreVersion": "v0.14.2", 4 | "layersVersion": "v0.9.1", 5 | "converterVersion": "v0.7.1", 6 | "dataVersion": "v0.1.4" 7 | } -------------------------------------------------------------------------------- /themes/dljs/layout/page.hbs: -------------------------------------------------------------------------------- 1 | {{#if page.bannerText}} 2 |
5 | {{/if}} 6 | 7 |' + highlighted +
10 | '\n';
11 | }
12 |
13 | return ''; // use external default escaping
14 | }
15 | });
16 |
17 | module.exports = function(hexo) {
18 | return {
19 | toJson: function(obj) {
20 | return JSON.stringify(obj);
21 | },
22 |
23 | isApiPage: function(path) {
24 | return path.match(/^api/);
25 | },
26 |
27 | getApi: function(siteData, versionString) {
28 | return siteData[`api/${versionString}/docs`];
29 | },
30 |
31 | markdown: function(attr) {
32 | if (attr) {
33 | return md.render(attr);
34 | }
35 | },
36 |
37 | markdownInner: function(attr) {
38 | if (attr) {
39 | const asMd = md.render(attr.trim())
40 | .replace(//, '') 41 | .replace(/(<\/p>\s*)$/, ''); 42 | 43 | return asMd; 44 | } 45 | }, 46 | 47 | latestVersion: function() { 48 | return hexo.locals.cache.data['api/api_manifest'].versions[0]; 49 | }, 50 | 51 | docVersions: function() { 52 | return hexo.locals.cache.data['api/api_manifest'].versions; 53 | }, 54 | 55 | eq(a, b) { 56 | return a === b; 57 | }, 58 | 59 | concat: function(a, b) { 60 | return a + b; 61 | }, 62 | 63 | codepenHtml: function() { 64 | return JSON.stringify( 65 | `
32 |
55 |
78 |
101 |
126 |
146 | 160 | Also check out the gallery 161 | to see what others in 162 | the community have created with TensorFlow.js. 163 |
164 |
173 | Tensors are the core datastructure of TensorFlow.js", 5 | "They are a generalization of vectors and matrices to potentially", 6 | "higher dimensions.
"], 7 | "subheadings": [ 8 | { 9 | "name": "Creation", 10 | "description": [ 11 | "We have utility functions for common cases like Scalar, 1D,", 12 | "2D, 3D and 4D tensors, as well a number of functions to initialize", 13 | "tensors in ways useful for machine learning.
"], 14 | "pin": [ 15 | "tensor", "scalar", "tensor1d", "tensor2d", "tensor3d", "tensor4d" 16 | ] 17 | }, 18 | { 19 | "name": "Classes", 20 | "description": ["", 21 | "This section shows the main Tensor related classes in TensorFlow.js and", 22 | "the methods we expose on them.", 23 | "
"], 24 | "pin": ["Tensor", "Variable", "TensorBuffer"] 25 | }, 26 | { 27 | "name": "Transformations", 28 | "description": ["This section describes some common Tensor", 29 | "transformations for reshaping and type-casting.
"] 30 | }, 31 | { 32 | "name": "Slicing and Joining", 33 | "description": ["TensorFlow.js provides several operations", 34 | "to slice or extract parts of a tensor, or join multiple", 35 | "tensors together."] 36 | } 37 | ] 38 | }, 39 | { 40 | "name": "Models", 41 | "description": ["
Models are one of the primary abstractions used in", 42 | "TensorFlow.js Layers. Models can be trained, evaluated, and used", 43 | "for prediction. A model's state (topology, and optionally, trained", 44 | "weights) can be restored from various formats.
", 45 | "Models are a collection of Layers, see Model Creation for", 46 | "for details about how Layers can be connected.
"], 47 | "subheadings": [ 48 | { 49 | "name": "Creation", 50 | "description": ["There are two primary ways of creating models.
", 51 | "Layers are the primary building block for ", 72 | "constructing a Model. Each layer will typically perform some", 73 | "computation to transform its input to its output.
", 74 | "Layers will automatically take care of creating and initializing", 75 | "the various internal variables/weights they need to function.
"], 76 | "subheadings": [ 77 | { 78 | "name": "Basic", 79 | "description": [] 80 | }, 81 | { 82 | "name": "Convolutional", 83 | "description": [] 84 | }, 85 | { 86 | "name": "Merge", 87 | "description": [] 88 | }, 89 | { 90 | "name": "Normalization", 91 | "description": [] 92 | }, 93 | { 94 | "name": "Pooling", 95 | "description": [] 96 | }, 97 | { 98 | "name": "Recurrent", 99 | "description": [] 100 | }, 101 | { 102 | "name": "Wrapper", 103 | "description": [] 104 | } 105 | ] 106 | }, 107 | { 108 | "name": "Operations", 109 | "description": [], 110 | "subheadings": [ 111 | { 112 | "name": "Arithmetic", 113 | "description": ["To perform mathematical computation on Tensors, we use", 114 | "operations. Tensors are immutable, so all operations always return", 115 | "new Tensors and never modify input Tensors.
"], 116 | "pin": ["add", "sub", "mul", "div"] 117 | }, 118 | {"name": "Basic math"}, {"name": "Matrices"}, {"name": "Convolution"}, 119 | {"name": "Reduction"}, {"name": "Normalization"}, {"name": "Images"}, 120 | {"name": "RNN"}, {"name": "Logical"} 121 | ] 122 | }, 123 | { 124 | "name": "Training", 125 | "description": ["We also provide an API to do perform training, and", 126 | "compute gradients. We compute gradients eagerly, users provide a function", 127 | "that is a combination of operations and we automatically differentiate", 128 | "that function's output with respect to its inputs.", 129 | "
For those familiar with TensorFlow, the API we expose exactly mirrors", 130 | "the TensorFlow Eager API.", 131 | "
"], 132 | "subheadings": [ 133 | { 134 | "name": "Gradients", 135 | "pin": ["grad", "grads", "valAndGrad", "valAndGrads", "customGrad"] 136 | }, 137 | {"name": "Optimizers", "pin": ["sgd", "momentum", "adagrad", "adadelta"]}, 138 | {"name": "Losses"}, {"name": "Classes"} 139 | ] 140 | }, 141 | { 142 | "name": "Performance", 143 | "description": [], 144 | "subheadings": 145 | [{"name": "Memory", "pin": ["tidy"]}, {"name": "Timing", "pin": ["time"]}] 146 | }, 147 | { 148 | "name": "Environment", 149 | "description": ["TensorFlow.js can run mathematical operations on", 150 | "different backends. Currently, we support WebGL and JavaScript", 151 | "CPU. By default, we choose the 'best' backend available, but", 152 | "allow users to customize their backend.
"], 153 | "subheadings": [{"name": "", "pin": ["setBackend"]}] 154 | }, 155 | { 156 | "name": "Constraints", 157 | "description": ["Constraints are added to attributes", 158 | "of a Layer (such as weights, kernels, or biases) at", 159 | "construction time to clamp, or otherwise enforce an allowed range,", 160 | "of values for different components of the Layer.
"], 161 | "subheadings": [{"name": ""}] 162 | }, 163 | { 164 | "name": "Initializers", 165 | "description": ["Initializers are used in Layers", 166 | "to establish the starting the values of weights, biases, kernels, ", 167 | "etc.
"], 168 | "subheadings": [{"name": ""}] 169 | }, 170 | { 171 | "name": "Regularizers", 172 | "description": ["Regularizers can be attached to various components", 173 | "of a Layer to add a 'scoring' function to help drive weights, or ", 174 | "other trainable values, away from excessively large values. They're", 175 | "typically used to promote a notion that a 'simpler' model is better", 176 | "than a complicated model, assuming equal performance.
"], 177 | "subheadings": [{"name": ""}] 178 | } 179 | 180 | ] 181 | -------------------------------------------------------------------------------- /source/_data/api/0.10.0/skeleton.json: -------------------------------------------------------------------------------- 1 | [ 2 | { 3 | "name": "Tensors", 4 | "description": ["Tensors are the core datastructure of TensorFlow.js", 5 | "They are a generalization of vectors and matrices to potentially", 6 | "higher dimensions.
"], 7 | "subheadings": [ 8 | { 9 | "name": "Creation", 10 | "description": [ 11 | "We have utility functions for common cases like Scalar, 1D,", 12 | "2D, 3D and 4D tensors, as well a number of functions to initialize", 13 | "tensors in ways useful for machine learning.
"], 14 | "pin": [ 15 | "tensor", "scalar", "tensor1d", "tensor2d", "tensor3d", "tensor4d" 16 | ] 17 | }, 18 | { 19 | "name": "Classes", 20 | "description": ["", 21 | "This section shows the main Tensor related classes in TensorFlow.js and", 22 | "the methods we expose on them.", 23 | "
"], 24 | "pin": ["Tensor", "Variable", "TensorBuffer"] 25 | }, 26 | { 27 | "name": "Transformations", 28 | "description": ["This section describes some common Tensor", 29 | "transformations for reshaping and type-casting.
"] 30 | }, 31 | { 32 | "name": "Slicing and Joining", 33 | "description": ["TensorFlow.js provides several operations", 34 | "to slice or extract parts of a tensor, or join multiple", 35 | "tensors together."] 36 | } 37 | ] 38 | }, 39 | { 40 | "name": "Models", 41 | "description": ["
Models are one of the primary abstractions used in", 42 | "TensorFlow.js Layers. Models can be trained, evaluated, and used", 43 | "for prediction. A model's state (topology, and optionally, trained", 44 | "weights) can be restored from various formats.
", 45 | "Models are a collection of Layers, see Model Creation for", 46 | "details about how Layers can be connected.
"], 47 | "subheadings": [ 48 | { 49 | "name": "Creation", 50 | "description": ["There are two primary ways of creating models.
", 51 | "Layers are the primary building block for ", 72 | "constructing a Model. Each layer will typically perform some", 73 | "computation to transform its input to its output.
", 74 | "Layers will automatically take care of creating and initializing", 75 | "the various internal variables/weights they need to function.
"], 76 | "subheadings": [ 77 | { 78 | "name": "Advanced Activation", 79 | "description": [] 80 | }, 81 | { 82 | "name": "Basic", 83 | "description": [] 84 | }, 85 | { 86 | "name": "Convolutional", 87 | "description": [] 88 | }, 89 | { 90 | "name": "Merge", 91 | "description": [] 92 | }, 93 | { 94 | "name": "Normalization", 95 | "description": [] 96 | }, 97 | { 98 | "name": "Pooling", 99 | "description": [] 100 | }, 101 | { 102 | "name": "Recurrent", 103 | "description": [] 104 | }, 105 | { 106 | "name": "Wrapper", 107 | "description": [] 108 | } 109 | ] 110 | }, 111 | { 112 | "name": "Operations", 113 | "description": [], 114 | "subheadings": [ 115 | { 116 | "name": "Arithmetic", 117 | "description": ["To perform mathematical computation on Tensors, we use", 118 | "operations. Tensors are immutable, so all operations always return", 119 | "new Tensors and never modify input Tensors.
"], 120 | "pin": ["add", "sub", "mul", "div"] 121 | }, 122 | {"name": "Basic math"}, {"name": "Matrices"}, {"name": "Convolution"}, 123 | {"name": "Reduction"}, {"name": "Normalization"}, {"name": "Images"}, 124 | {"name": "RNN"}, {"name": "Logical"} 125 | ] 126 | }, 127 | { 128 | "name": "Training", 129 | "description": ["We also provide an API to do perform training, and", 130 | "compute gradients. We compute gradients eagerly, users provide a function", 131 | "that is a combination of operations and we automatically differentiate", 132 | "that function's output with respect to its inputs.", 133 | "
For those familiar with TensorFlow, the API we expose exactly mirrors", 134 | "the TensorFlow Eager API.", 135 | "
"], 136 | "subheadings": [ 137 | { 138 | "name": "Gradients", 139 | "pin": ["grad", "grads", "valAndGrad", "valAndGrads", "customGrad"] 140 | }, 141 | {"name": "Optimizers", "pin": ["sgd", "momentum", "adagrad", "adadelta"]}, 142 | {"name": "Losses"}, {"name": "Classes"} 143 | ] 144 | }, 145 | { 146 | "name": "Performance", 147 | "description": [], 148 | "subheadings": 149 | [{"name": "Memory", "pin": ["tidy"]}, {"name": "Timing", "pin": ["time"]}] 150 | }, 151 | { 152 | "name": "Environment", 153 | "description": ["TensorFlow.js can run mathematical operations on", 154 | "different backends. Currently, we support WebGL and JavaScript", 155 | "CPU. By default, we choose the 'best' backend available, but", 156 | "allow users to customize their backend.
"], 157 | "subheadings": [{"name": "", "pin": ["setBackend"]}] 158 | }, 159 | { 160 | "name": "Constraints", 161 | "description": ["Constraints are added to attributes", 162 | "of a Layer (such as weights, kernels, or biases) at", 163 | "construction time to clamp, or otherwise enforce an allowed range,", 164 | "of values for different components of the Layer.
"], 165 | "subheadings": [{"name": ""}] 166 | }, 167 | { 168 | "name": "Initializers", 169 | "description": ["Initializers are used in Layers", 170 | "to establish the starting the values of weights, biases, kernels, ", 171 | "etc.
"], 172 | "subheadings": [{"name": ""}] 173 | }, 174 | { 175 | "name": "Regularizers", 176 | "description": ["Regularizers can be attached to various components", 177 | "of a Layer to add a 'scoring' function to help drive weights, or ", 178 | "other trainable values, away from excessively large values. They're", 179 | "typically used to promote a notion that a 'simpler' model is better", 180 | "than a complicated model, assuming equal performance.
"], 181 | "subheadings": [{"name": ""}] 182 | } 183 | 184 | ] 185 | -------------------------------------------------------------------------------- /source/_data/api/0.11.1/skeleton.json: -------------------------------------------------------------------------------- 1 | [ 2 | { 3 | "name": "Tensors", 4 | "description": ["Tensors are the core datastructure of TensorFlow.js", 5 | "They are a generalization of vectors and matrices to potentially", 6 | "higher dimensions.
"], 7 | "subheadings": [ 8 | { 9 | "name": "Creation", 10 | "description": [ 11 | "We have utility functions for common cases like Scalar, 1D,", 12 | "2D, 3D and 4D tensors, as well a number of functions to initialize", 13 | "tensors in ways useful for machine learning.
"], 14 | "pin": [ 15 | "tensor", "scalar", "tensor1d", "tensor2d", "tensor3d", "tensor4d" 16 | ] 17 | }, 18 | { 19 | "name": "Classes", 20 | "description": ["", 21 | "This section shows the main Tensor related classes in TensorFlow.js and", 22 | "the methods we expose on them.", 23 | "
"], 24 | "pin": ["Tensor", "Variable", "TensorBuffer"] 25 | }, 26 | { 27 | "name": "Transformations", 28 | "description": ["This section describes some common Tensor", 29 | "transformations for reshaping and type-casting.
"] 30 | }, 31 | { 32 | "name": "Slicing and Joining", 33 | "description": ["TensorFlow.js provides several operations", 34 | "to slice or extract parts of a tensor, or join multiple", 35 | "tensors together."] 36 | } 37 | ] 38 | }, 39 | { 40 | "name": "Models", 41 | "description": ["
Models are one of the primary abstractions used in", 42 | "TensorFlow.js Layers. Models can be trained, evaluated, and used", 43 | "for prediction. A model's state (topology, and optionally, trained", 44 | "weights) can be restored from various formats.
", 45 | "Models are a collection of Layers, see Model Creation for", 46 | "details about how Layers can be connected.
"], 47 | "subheadings": [ 48 | { 49 | "name": "Creation", 50 | "description": ["There are two primary ways of creating models.
", 51 | "Layers are the primary building block for ", 72 | "constructing a Model. Each layer will typically perform some", 73 | "computation to transform its input to its output.
", 74 | "Layers will automatically take care of creating and initializing", 75 | "the various internal variables/weights they need to function.
"], 76 | "subheadings": [ 77 | { 78 | "name": "Advanced Activation", 79 | "description": [] 80 | }, 81 | { 82 | "name": "Basic", 83 | "description": [] 84 | }, 85 | { 86 | "name": "Convolutional", 87 | "description": [] 88 | }, 89 | { 90 | "name": "Merge", 91 | "description": [] 92 | }, 93 | { 94 | "name": "Normalization", 95 | "description": [] 96 | }, 97 | { 98 | "name": "Pooling", 99 | "description": [] 100 | }, 101 | { 102 | "name": "Recurrent", 103 | "description": [] 104 | }, 105 | { 106 | "name": "Wrapper", 107 | "description": [] 108 | } 109 | ] 110 | }, 111 | { 112 | "name": "Operations", 113 | "description": [], 114 | "subheadings": [ 115 | { 116 | "name": "Arithmetic", 117 | "description": ["To perform mathematical computation on Tensors, we use", 118 | "operations. Tensors are immutable, so all operations always return", 119 | "new Tensors and never modify input Tensors.
"], 120 | "pin": ["add", "sub", "mul", "div"] 121 | }, 122 | {"name": "Basic math"}, {"name": "Matrices"}, {"name": "Convolution"}, 123 | {"name": "Reduction"}, {"name": "Normalization"}, {"name": "Images"}, 124 | {"name": "RNN"}, {"name": "Logical"} 125 | ] 126 | }, 127 | { 128 | "name": "Training", 129 | "description": ["We also provide an API to do perform training, and", 130 | "compute gradients. We compute gradients eagerly, users provide a function", 131 | "that is a combination of operations and we automatically differentiate", 132 | "that function's output with respect to its inputs.", 133 | "
For those familiar with TensorFlow, the API we expose exactly mirrors", 134 | "the TensorFlow Eager API.", 135 | "
"], 136 | "subheadings": [ 137 | { 138 | "name": "Gradients", 139 | "pin": ["grad", "grads", "valAndGrad", "valAndGrads", "customGrad"] 140 | }, 141 | {"name": "Optimizers", "pin": ["sgd", "momentum", "adagrad", "adadelta"]}, 142 | {"name": "Losses"}, {"name": "Classes"} 143 | ] 144 | }, 145 | { 146 | "name": "Performance", 147 | "description": [], 148 | "subheadings": 149 | [{"name": "Memory", "pin": ["tidy"]}, {"name": "Timing", "pin": ["time"]}] 150 | }, 151 | { 152 | "name": "Environment", 153 | "description": ["TensorFlow.js can run mathematical operations on", 154 | "different backends. Currently, we support WebGL and JavaScript", 155 | "CPU. By default, we choose the 'best' backend available, but", 156 | "allow users to customize their backend.
"], 157 | "subheadings": [{"name": "", "pin": ["setBackend"]}] 158 | }, 159 | { 160 | "name": "Constraints", 161 | "description": ["Constraints are added to attributes", 162 | "of a Layer (such as weights, kernels, or biases) at", 163 | "construction time to clamp, or otherwise enforce an allowed range,", 164 | "of values for different components of the Layer.
"], 165 | "subheadings": [{"name": ""}] 166 | }, 167 | { 168 | "name": "Initializers", 169 | "description": ["Initializers are used in Layers", 170 | "to establish the starting the values of weights, biases, kernels, ", 171 | "etc.
"], 172 | "subheadings": [{"name": ""}] 173 | }, 174 | { 175 | "name": "Regularizers", 176 | "description": ["Regularizers can be attached to various components", 177 | "of a Layer to add a 'scoring' function to help drive weights, or ", 178 | "other trainable values, away from excessively large values. They're", 179 | "typically used to promote a notion that a 'simpler' model is better", 180 | "than a complicated model, assuming equal performance.
"], 181 | "subheadings": [{"name": ""}] 182 | } 183 | 184 | ] 185 | -------------------------------------------------------------------------------- /source/_data/api/0.11.2/skeleton.json: -------------------------------------------------------------------------------- 1 | [ 2 | { 3 | "name": "Tensors", 4 | "description": ["Tensors are the core datastructure of TensorFlow.js", 5 | "They are a generalization of vectors and matrices to potentially", 6 | "higher dimensions.
"], 7 | "subheadings": [ 8 | { 9 | "name": "Creation", 10 | "description": [ 11 | "We have utility functions for common cases like Scalar, 1D,", 12 | "2D, 3D and 4D tensors, as well a number of functions to initialize", 13 | "tensors in ways useful for machine learning.
"], 14 | "pin": [ 15 | "tensor", "scalar", "tensor1d", "tensor2d", "tensor3d", "tensor4d" 16 | ] 17 | }, 18 | { 19 | "name": "Classes", 20 | "description": ["", 21 | "This section shows the main Tensor related classes in TensorFlow.js and", 22 | "the methods we expose on them.", 23 | "
"], 24 | "pin": ["Tensor", "Variable", "TensorBuffer"] 25 | }, 26 | { 27 | "name": "Transformations", 28 | "description": ["This section describes some common Tensor", 29 | "transformations for reshaping and type-casting.
"] 30 | }, 31 | { 32 | "name": "Slicing and Joining", 33 | "description": ["TensorFlow.js provides several operations", 34 | "to slice or extract parts of a tensor, or join multiple", 35 | "tensors together."] 36 | } 37 | ] 38 | }, 39 | { 40 | "name": "Models", 41 | "description": ["
Models are one of the primary abstractions used in", 42 | "TensorFlow.js Layers. Models can be trained, evaluated, and used", 43 | "for prediction. A model's state (topology, and optionally, trained", 44 | "weights) can be restored from various formats.
", 45 | "Models are a collection of Layers, see Model Creation for", 46 | "details about how Layers can be connected.
"], 47 | "subheadings": [ 48 | { 49 | "name": "Creation", 50 | "description": ["There are two primary ways of creating models.
", 51 | "Layers are the primary building block for ", 72 | "constructing a Model. Each layer will typically perform some", 73 | "computation to transform its input to its output.
", 74 | "Layers will automatically take care of creating and initializing", 75 | "the various internal variables/weights they need to function.
"], 76 | "subheadings": [ 77 | { 78 | "name": "Advanced Activation", 79 | "description": [] 80 | }, 81 | { 82 | "name": "Basic", 83 | "description": [] 84 | }, 85 | { 86 | "name": "Convolutional", 87 | "description": [] 88 | }, 89 | { 90 | "name": "Merge", 91 | "description": [] 92 | }, 93 | { 94 | "name": "Normalization", 95 | "description": [] 96 | }, 97 | { 98 | "name": "Pooling", 99 | "description": [] 100 | }, 101 | { 102 | "name": "Recurrent", 103 | "description": [] 104 | }, 105 | { 106 | "name": "Wrapper", 107 | "description": [] 108 | } 109 | ] 110 | }, 111 | { 112 | "name": "Operations", 113 | "description": [], 114 | "subheadings": [ 115 | { 116 | "name": "Arithmetic", 117 | "description": ["To perform mathematical computation on Tensors, we use", 118 | "operations. Tensors are immutable, so all operations always return", 119 | "new Tensors and never modify input Tensors.
"], 120 | "pin": ["add", "sub", "mul", "div"] 121 | }, 122 | {"name": "Basic math"}, {"name": "Matrices"}, {"name": "Convolution"}, 123 | {"name": "Reduction"}, {"name": "Normalization"}, {"name": "Images"}, 124 | {"name": "RNN"}, {"name": "Logical"} 125 | ] 126 | }, 127 | { 128 | "name": "Training", 129 | "description": ["We also provide an API to do perform training, and", 130 | "compute gradients. We compute gradients eagerly, users provide a function", 131 | "that is a combination of operations and we automatically differentiate", 132 | "that function's output with respect to its inputs.", 133 | "
For those familiar with TensorFlow, the API we expose exactly mirrors", 134 | "the TensorFlow Eager API.", 135 | "
"], 136 | "subheadings": [ 137 | { 138 | "name": "Gradients", 139 | "pin": ["grad", "grads", "valAndGrad", "valAndGrads", "customGrad"] 140 | }, 141 | {"name": "Optimizers", "pin": ["sgd", "momentum", "adagrad", "adadelta"]}, 142 | {"name": "Losses"}, {"name": "Classes"} 143 | ] 144 | }, 145 | { 146 | "name": "Performance", 147 | "description": [], 148 | "subheadings": 149 | [{"name": "Memory", "pin": ["tidy"]}, {"name": "Timing", "pin": ["time"]}] 150 | }, 151 | { 152 | "name": "Environment", 153 | "description": ["TensorFlow.js can run mathematical operations on", 154 | "different backends. Currently, we support WebGL and JavaScript", 155 | "CPU. By default, we choose the 'best' backend available, but", 156 | "allow users to customize their backend.
"], 157 | "subheadings": [{"name": "", "pin": ["setBackend"]}] 158 | }, 159 | { 160 | "name": "Constraints", 161 | "description": ["Constraints are added to attributes", 162 | "of a Layer (such as weights, kernels, or biases) at", 163 | "construction time to clamp, or otherwise enforce an allowed range,", 164 | "of values for different components of the Layer.
"], 165 | "subheadings": [{"name": ""}] 166 | }, 167 | { 168 | "name": "Initializers", 169 | "description": ["Initializers are used in Layers", 170 | "to establish the starting the values of weights, biases, kernels, ", 171 | "etc.
"], 172 | "subheadings": [{"name": ""}] 173 | }, 174 | { 175 | "name": "Regularizers", 176 | "description": ["Regularizers can be attached to various components", 177 | "of a Layer to add a 'scoring' function to help drive weights, or ", 178 | "other trainable values, away from excessively large values. They're", 179 | "typically used to promote a notion that a 'simpler' model is better", 180 | "than a complicated model, assuming equal performance.
"], 181 | "subheadings": [{"name": ""}] 182 | } 183 | 184 | ] 185 | -------------------------------------------------------------------------------- /source/_data/api/0.11.6/skeleton.json: -------------------------------------------------------------------------------- 1 | [ 2 | { 3 | "name": "Tensors", 4 | "description": ["Tensors are the core datastructure of TensorFlow.js", 5 | "They are a generalization of vectors and matrices to potentially", 6 | "higher dimensions.
"], 7 | "subheadings": [ 8 | { 9 | "name": "Creation", 10 | "description": [ 11 | "We have utility functions for common cases like Scalar, 1D,", 12 | "2D, 3D and 4D tensors, as well a number of functions to initialize", 13 | "tensors in ways useful for machine learning.
"], 14 | "pin": [ 15 | "tensor", "scalar", "tensor1d", "tensor2d", "tensor3d", "tensor4d" 16 | ] 17 | }, 18 | { 19 | "name": "Classes", 20 | "description": ["", 21 | "This section shows the main Tensor related classes in TensorFlow.js and", 22 | "the methods we expose on them.", 23 | "
"], 24 | "pin": ["Tensor", "Variable", "TensorBuffer"] 25 | }, 26 | { 27 | "name": "Transformations", 28 | "description": ["This section describes some common Tensor", 29 | "transformations for reshaping and type-casting.
"] 30 | }, 31 | { 32 | "name": "Slicing and Joining", 33 | "description": ["TensorFlow.js provides several operations", 34 | "to slice or extract parts of a tensor, or join multiple", 35 | "tensors together."] 36 | } 37 | ] 38 | }, 39 | { 40 | "name": "Models", 41 | "description": ["
Models are one of the primary abstractions used in", 42 | "TensorFlow.js Layers. Models can be trained, evaluated, and used", 43 | "for prediction. A model's state (topology, and optionally, trained", 44 | "weights) can be restored from various formats.
", 45 | "Models are a collection of Layers, see Model Creation for", 46 | "details about how Layers can be connected.
"], 47 | "subheadings": [ 48 | { 49 | "name": "Creation", 50 | "description": ["There are two primary ways of creating models.
", 51 | "Layers are the primary building block for ", 72 | "constructing a Model. Each layer will typically perform some", 73 | "computation to transform its input to its output.
", 74 | "Layers will automatically take care of creating and initializing", 75 | "the various internal variables/weights they need to function.
"], 76 | "subheadings": [ 77 | { 78 | "name": "Advanced Activation", 79 | "description": [] 80 | }, 81 | { 82 | "name": "Basic", 83 | "description": [] 84 | }, 85 | { 86 | "name": "Convolutional", 87 | "description": [] 88 | }, 89 | { 90 | "name": "Merge", 91 | "description": [] 92 | }, 93 | { 94 | "name": "Normalization", 95 | "description": [] 96 | }, 97 | { 98 | "name": "Pooling", 99 | "description": [] 100 | }, 101 | { 102 | "name": "Recurrent", 103 | "description": [] 104 | }, 105 | { 106 | "name": "Wrapper", 107 | "description": [] 108 | } 109 | ] 110 | }, 111 | { 112 | "name": "Operations", 113 | "description": [], 114 | "subheadings": [ 115 | { 116 | "name": "Arithmetic", 117 | "description": ["To perform mathematical computation on Tensors, we use", 118 | "operations. Tensors are immutable, so all operations always return", 119 | "new Tensors and never modify input Tensors.
"], 120 | "pin": ["add", "sub", "mul", "div"] 121 | }, 122 | {"name": "Basic math"}, {"name": "Matrices"}, {"name": "Convolution"}, 123 | {"name": "Reduction"}, {"name": "Normalization"}, {"name": "Images"}, 124 | {"name": "RNN"}, {"name": "Logical"} 125 | ] 126 | }, 127 | { 128 | "name": "Training", 129 | "description": ["We also provide an API to do perform training, and", 130 | "compute gradients. We compute gradients eagerly, users provide a function", 131 | "that is a combination of operations and we automatically differentiate", 132 | "that function's output with respect to its inputs.", 133 | "
For those familiar with TensorFlow, the API we expose exactly mirrors", 134 | "the TensorFlow Eager API.", 135 | "
"], 136 | "subheadings": [ 137 | { 138 | "name": "Gradients", 139 | "pin": ["grad", "grads", "valAndGrad", "valAndGrads", "customGrad"] 140 | }, 141 | {"name": "Optimizers", "pin": ["sgd", "momentum", "adagrad", "adadelta"]}, 142 | {"name": "Losses"}, {"name": "Classes"} 143 | ] 144 | }, 145 | { 146 | "name": "Performance", 147 | "description": [], 148 | "subheadings": 149 | [{"name": "Memory", "pin": ["tidy"]}, {"name": "Timing", "pin": ["time"]}] 150 | }, 151 | { 152 | "name": "Environment", 153 | "description": ["TensorFlow.js can run mathematical operations on", 154 | "different backends. Currently, we support WebGL and JavaScript", 155 | "CPU. By default, we choose the 'best' backend available, but", 156 | "allow users to customize their backend.
"], 157 | "subheadings": [{"name": "", "pin": ["setBackend"]}] 158 | }, 159 | { 160 | "name": "Constraints", 161 | "description": ["Constraints are added to attributes", 162 | "of a Layer (such as weights, kernels, or biases) at", 163 | "construction time to clamp, or otherwise enforce an allowed range,", 164 | "of values for different components of the Layer.
"], 165 | "subheadings": [{"name": ""}] 166 | }, 167 | { 168 | "name": "Initializers", 169 | "description": ["Initializers are used in Layers", 170 | "to establish the starting the values of weights, biases, kernels, ", 171 | "etc.
"], 172 | "subheadings": [{"name": ""}] 173 | }, 174 | { 175 | "name": "Regularizers", 176 | "description": ["Regularizers can be attached to various components", 177 | "of a Layer to add a 'scoring' function to help drive weights, or ", 178 | "other trainable values, away from excessively large values. They're", 179 | "typically used to promote a notion that a 'simpler' model is better", 180 | "than a complicated model, assuming equal performance.
"], 181 | "subheadings": [{"name": ""}] 182 | } 183 | 184 | ] 185 | -------------------------------------------------------------------------------- /source/_data/api/0.8.0/skeleton.json: -------------------------------------------------------------------------------- 1 | [ 2 | { 3 | "name": "Tensors", 4 | "description": ["Tensors are the core datastructure of TensorFlow.js", 5 | "They are a generalization of vectors and matrices to potentially", 6 | "higher dimensions.
"], 7 | "subheadings": [ 8 | { 9 | "name": "Creation", 10 | "description": [ 11 | "We have utility functions for common cases like Scalar, 1D,", 12 | "2D, 3D and 4D tensors, as well a number of functions to initialize", 13 | "tensors in ways useful for machine learning.
"], 14 | "pin": [ 15 | "tensor", "scalar", "tensor1d", "tensor2d", "tensor3d", "tensor4d" 16 | ] 17 | }, 18 | { 19 | "name": "Classes", 20 | "description": ["", 21 | "This section shows the main Tensor related classes in TensorFlow.js and", 22 | "the methods we expose on them.", 23 | "
"], 24 | "pin": ["Tensor", "Variable", "TensorBuffer"] 25 | }, 26 | { 27 | "name": "Transformations", 28 | "description": ["This section describes some common Tensor", 29 | "transformations for reshaping and type-casting.
"] 30 | }, 31 | { 32 | "name": "Slicing and Joining", 33 | "description": ["TensorFlow.js provides several operations", 34 | "to slice or extract parts of a tensor, or join multiple", 35 | "tensors together."] 36 | } 37 | ] 38 | }, 39 | { 40 | "name": "Models", 41 | "description": ["
Models are one of the primary abstractions used in", 42 | "TensorFlow.js Layers. Models can be trained, evaluated, and used", 43 | "for prediction. A model's state (topology, and optionally, trained", 44 | "weights) can be restored from various formats.
", 45 | "Models are a collection of Layers, see Model Creation for", 46 | "details about how Layers can be connected.
"], 47 | "subheadings": [ 48 | { 49 | "name": "Creation", 50 | "description": ["There are two primary ways of creating models.
", 51 | "Layers are the primary building block for ", 72 | "constructing a Model. Each layer will typically perform some", 73 | "computation to transform its input to its output.
", 74 | "Layers will automatically take care of creating and initializing", 75 | "the various internal variables/weights they need to function.
"], 76 | "subheadings": [ 77 | { 78 | "name": "Advanced Activation", 79 | "description": [] 80 | }, 81 | { 82 | "name": "Basic", 83 | "description": [] 84 | }, 85 | { 86 | "name": "Convolutional", 87 | "description": [] 88 | }, 89 | { 90 | "name": "Merge", 91 | "description": [] 92 | }, 93 | { 94 | "name": "Normalization", 95 | "description": [] 96 | }, 97 | { 98 | "name": "Pooling", 99 | "description": [] 100 | }, 101 | { 102 | "name": "Recurrent", 103 | "description": [] 104 | }, 105 | { 106 | "name": "Wrapper", 107 | "description": [] 108 | } 109 | ] 110 | }, 111 | { 112 | "name": "Operations", 113 | "description": [], 114 | "subheadings": [ 115 | { 116 | "name": "Arithmetic", 117 | "description": ["To perform mathematical computation on Tensors, we use", 118 | "operations. Tensors are immutable, so all operations always return", 119 | "new Tensors and never modify input Tensors.
"], 120 | "pin": ["add", "sub", "mul", "div"] 121 | }, 122 | {"name": "Basic math"}, {"name": "Matrices"}, {"name": "Convolution"}, 123 | {"name": "Reduction"}, {"name": "Normalization"}, {"name": "Images"}, 124 | {"name": "RNN"}, {"name": "Logical"} 125 | ] 126 | }, 127 | { 128 | "name": "Training", 129 | "description": ["We also provide an API to do perform training, and", 130 | "compute gradients. We compute gradients eagerly, users provide a function", 131 | "that is a combination of operations and we automatically differentiate", 132 | "that function's output with respect to its inputs.", 133 | "
For those familiar with TensorFlow, the API we expose exactly mirrors", 134 | "the TensorFlow Eager API.", 135 | "
"], 136 | "subheadings": [ 137 | { 138 | "name": "Gradients", 139 | "pin": ["grad", "grads", "valAndGrad", "valAndGrads", "customGrad"] 140 | }, 141 | {"name": "Optimizers", "pin": ["sgd", "momentum", "adagrad", "adadelta"]}, 142 | {"name": "Losses"}, {"name": "Classes"} 143 | ] 144 | }, 145 | { 146 | "name": "Performance", 147 | "description": [], 148 | "subheadings": 149 | [{"name": "Memory", "pin": ["tidy"]}, {"name": "Timing", "pin": ["time"]}] 150 | }, 151 | { 152 | "name": "Environment", 153 | "description": ["TensorFlow.js can run mathematical operations on", 154 | "different backends. Currently, we support WebGL and JavaScript", 155 | "CPU. By default, we choose the 'best' backend available, but", 156 | "allow users to customize their backend.
"], 157 | "subheadings": [{"name": "", "pin": ["setBackend"]}] 158 | }, 159 | { 160 | "name": "Constraints", 161 | "description": ["Constraints are added to attributes", 162 | "of a Layer (such as weights, kernels, or biases) at", 163 | "construction time to clamp, or otherwise enforce an allowed range,", 164 | "of values for different components of the Layer.
"], 165 | "subheadings": [{"name": ""}] 166 | }, 167 | { 168 | "name": "Initializers", 169 | "description": ["Initializers are used in Layers", 170 | "to establish the starting the values of weights, biases, kernels, ", 171 | "etc.
"], 172 | "subheadings": [{"name": ""}] 173 | }, 174 | { 175 | "name": "Regularizers", 176 | "description": ["Regularizers can be attached to various components", 177 | "of a Layer to add a 'scoring' function to help drive weights, or ", 178 | "other trainable values, away from excessively large values. They're", 179 | "typically used to promote a notion that a 'simpler' model is better", 180 | "than a complicated model, assuming equal performance.
"], 181 | "subheadings": [{"name": ""}] 182 | } 183 | 184 | ] 185 | -------------------------------------------------------------------------------- /source/_data/api/0.9.0/skeleton.json: -------------------------------------------------------------------------------- 1 | [ 2 | { 3 | "name": "Tensors", 4 | "description": ["Tensors are the core datastructure of TensorFlow.js", 5 | "They are a generalization of vectors and matrices to potentially", 6 | "higher dimensions.
"], 7 | "subheadings": [ 8 | { 9 | "name": "Creation", 10 | "description": [ 11 | "We have utility functions for common cases like Scalar, 1D,", 12 | "2D, 3D and 4D tensors, as well a number of functions to initialize", 13 | "tensors in ways useful for machine learning.
"], 14 | "pin": [ 15 | "tensor", "scalar", "tensor1d", "tensor2d", "tensor3d", "tensor4d" 16 | ] 17 | }, 18 | { 19 | "name": "Classes", 20 | "description": ["", 21 | "This section shows the main Tensor related classes in TensorFlow.js and", 22 | "the methods we expose on them.", 23 | "
"], 24 | "pin": ["Tensor", "Variable", "TensorBuffer"] 25 | }, 26 | { 27 | "name": "Transformations", 28 | "description": ["This section describes some common Tensor", 29 | "transformations for reshaping and type-casting.
"] 30 | }, 31 | { 32 | "name": "Slicing and Joining", 33 | "description": ["TensorFlow.js provides several operations", 34 | "to slice or extract parts of a tensor, or join multiple", 35 | "tensors together."] 36 | } 37 | ] 38 | }, 39 | { 40 | "name": "Models", 41 | "description": ["
Models are one of the primary abstractions used in", 42 | "TensorFlow.js Layers. Models can be trained, evaluated, and used", 43 | "for prediction. A model's state (topology, and optionally, trained", 44 | "weights) can be restored from various formats.
", 45 | "Models are a collection of Layers, see Model Creation for", 46 | "details about how Layers can be connected.
"], 47 | "subheadings": [ 48 | { 49 | "name": "Creation", 50 | "description": ["There are two primary ways of creating models.
", 51 | "Layers are the primary building block for ", 72 | "constructing a Model. Each layer will typically perform some", 73 | "computation to transform its input to its output.
", 74 | "Layers will automatically take care of creating and initializing", 75 | "the various internal variables/weights they need to function.
"], 76 | "subheadings": [ 77 | { 78 | "name": "Advanced Activation", 79 | "description": [] 80 | }, 81 | { 82 | "name": "Basic", 83 | "description": [] 84 | }, 85 | { 86 | "name": "Convolutional", 87 | "description": [] 88 | }, 89 | { 90 | "name": "Merge", 91 | "description": [] 92 | }, 93 | { 94 | "name": "Normalization", 95 | "description": [] 96 | }, 97 | { 98 | "name": "Pooling", 99 | "description": [] 100 | }, 101 | { 102 | "name": "Recurrent", 103 | "description": [] 104 | }, 105 | { 106 | "name": "Wrapper", 107 | "description": [] 108 | } 109 | ] 110 | }, 111 | { 112 | "name": "Operations", 113 | "description": [], 114 | "subheadings": [ 115 | { 116 | "name": "Arithmetic", 117 | "description": ["To perform mathematical computation on Tensors, we use", 118 | "operations. Tensors are immutable, so all operations always return", 119 | "new Tensors and never modify input Tensors.
"], 120 | "pin": ["add", "sub", "mul", "div"] 121 | }, 122 | {"name": "Basic math"}, {"name": "Matrices"}, {"name": "Convolution"}, 123 | {"name": "Reduction"}, {"name": "Normalization"}, {"name": "Images"}, 124 | {"name": "RNN"}, {"name": "Logical"} 125 | ] 126 | }, 127 | { 128 | "name": "Training", 129 | "description": ["We also provide an API to do perform training, and", 130 | "compute gradients. We compute gradients eagerly, users provide a function", 131 | "that is a combination of operations and we automatically differentiate", 132 | "that function's output with respect to its inputs.", 133 | "
For those familiar with TensorFlow, the API we expose exactly mirrors", 134 | "the TensorFlow Eager API.", 135 | "
"], 136 | "subheadings": [ 137 | { 138 | "name": "Gradients", 139 | "pin": ["grad", "grads", "valAndGrad", "valAndGrads", "customGrad"] 140 | }, 141 | {"name": "Optimizers", "pin": ["sgd", "momentum", "adagrad", "adadelta"]}, 142 | {"name": "Losses"}, {"name": "Classes"} 143 | ] 144 | }, 145 | { 146 | "name": "Performance", 147 | "description": [], 148 | "subheadings": 149 | [{"name": "Memory", "pin": ["tidy"]}, {"name": "Timing", "pin": ["time"]}] 150 | }, 151 | { 152 | "name": "Environment", 153 | "description": ["TensorFlow.js can run mathematical operations on", 154 | "different backends. Currently, we support WebGL and JavaScript", 155 | "CPU. By default, we choose the 'best' backend available, but", 156 | "allow users to customize their backend.
"], 157 | "subheadings": [{"name": "", "pin": ["setBackend"]}] 158 | }, 159 | { 160 | "name": "Constraints", 161 | "description": ["Constraints are added to attributes", 162 | "of a Layer (such as weights, kernels, or biases) at", 163 | "construction time to clamp, or otherwise enforce an allowed range,", 164 | "of values for different components of the Layer.
"], 165 | "subheadings": [{"name": ""}] 166 | }, 167 | { 168 | "name": "Initializers", 169 | "description": ["Initializers are used in Layers", 170 | "to establish the starting the values of weights, biases, kernels, ", 171 | "etc.
"], 172 | "subheadings": [{"name": ""}] 173 | }, 174 | { 175 | "name": "Regularizers", 176 | "description": ["Regularizers can be attached to various components", 177 | "of a Layer to add a 'scoring' function to help drive weights, or ", 178 | "other trainable values, away from excessively large values. They're", 179 | "typically used to promote a notion that a 'simpler' model is better", 180 | "than a complicated model, assuming equal performance.
"], 181 | "subheadings": [{"name": ""}] 182 | } 183 | 184 | ] 185 | -------------------------------------------------------------------------------- /source/_data/api/0.7.0/skeleton.json: -------------------------------------------------------------------------------- 1 | [ 2 | { 3 | "name": "Tensors", 4 | "description": ["Tensors are the core datastructure of TensorFlow.js", 5 | "They are a generalization of vectors and matrices to potentially", 6 | "higher dimensions.
"], 7 | "subheadings": [ 8 | { 9 | "name": "Creation", 10 | "description": [ 11 | "We have utility functions for common cases like Scalar, 1D,", 12 | "2D, 3D and 4D tensors, as well a number of functions to initialize", 13 | "tensors in ways useful for machine learning.
"], 14 | "pin": [ 15 | "tensor", "scalar", "tensor1d", "tensor2d", "tensor3d", "tensor4d" 16 | ] 17 | }, 18 | { 19 | "name": "Classes", 20 | "description": ["", 21 | "This section shows the main Tensor related classes in TensorFlow.js and", 22 | "the methods we expose on them.", 23 | "
"], 24 | "pin": ["Tensor", "Variable", "TensorBuffer"] 25 | }, 26 | { 27 | "name": "Transformations", 28 | "description": ["This section describes some common Tensor", 29 | "transformations for reshaping and type-casting.
"] 30 | }, 31 | { 32 | "name": "Slicing and Joining", 33 | "description": ["TensorFlow.js provides several operations", 34 | "to slice or extract parts of a tensor, or join multiple", 35 | "tensors together."] 36 | } 37 | ] 38 | }, 39 | { 40 | "name": "Models", 41 | "description": ["
Models are one of the primary abstractions used in", 42 | "TensorFlow.js Layers. Models can be trained, evaluated, and used", 43 | "for prediction. A model's state (topology, and optionally, trained", 44 | "weights) can be restored from various formats.
", 45 | "Models are a collection of Layers, see Model Creation for", 46 | "for details about how Layers can be connected.
"], 47 | "subheadings": [ 48 | { 49 | "name": "Creation", 50 | "description": ["There are two primary ways of creating models.
", 51 | "Layers are the primary building block for ", 72 | "constructing a Model. Each layer will typically perform some", 73 | "computation to transform its input to its output.
", 74 | "Layers will automatically take care of creating and initializing", 75 | "the various internal variables/weights they need to function.
"], 76 | "subheadings": [ 77 | { 78 | "name": "Advanced Activation", 79 | "description": [] 80 | }, 81 | { 82 | "name": "Basic", 83 | "description": [] 84 | }, 85 | { 86 | "name": "Convolutional", 87 | "description": [] 88 | }, 89 | { 90 | "name": "Merge", 91 | "description": [] 92 | }, 93 | { 94 | "name": "Normalization", 95 | "description": [] 96 | }, 97 | { 98 | "name": "Pooling", 99 | "description": [] 100 | }, 101 | { 102 | "name": "Recurrent", 103 | "description": [] 104 | }, 105 | { 106 | "name": "Wrapper", 107 | "description": [] 108 | } 109 | ] 110 | }, 111 | { 112 | "name": "Operations", 113 | "description": [], 114 | "subheadings": [ 115 | { 116 | "name": "Arithmetic", 117 | "description": ["To perform mathematical computation on Tensors, we use", 118 | "operations. Tensors are immutable, so all operations always return", 119 | "new Tensors and never modify input Tensors.
"], 120 | "pin": ["add", "sub", "mul", "div"] 121 | }, 122 | {"name": "Basic math"}, {"name": "Matrices"}, {"name": "Convolution"}, 123 | {"name": "Reduction"}, {"name": "Normalization"}, {"name": "Images"}, 124 | {"name": "RNN"}, {"name": "Logical"} 125 | ] 126 | }, 127 | { 128 | "name": "Training", 129 | "description": ["We also provide an API to do perform training, and", 130 | "compute gradients. We compute gradients eagerly, users provide a function", 131 | "that is a combination of operations and we automatically differentiate", 132 | "that function's output with respect to its inputs.", 133 | "
For those familiar with TensorFlow, the API we expose exactly mirrors", 134 | "the TensorFlow Eager API.", 135 | "
"], 136 | "subheadings": [ 137 | { 138 | "name": "Gradients", 139 | "pin": ["grad", "grads", "valAndGrad", "valAndGrads", "customGrad"] 140 | }, 141 | {"name": "Optimizers", "pin": ["sgd", "momentum", "adagrad", "adadelta"]}, 142 | {"name": "Losses"}, {"name": "Classes"} 143 | ] 144 | }, 145 | { 146 | "name": "Performance", 147 | "description": [], 148 | "subheadings": 149 | [{"name": "Memory", "pin": ["tidy"]}, {"name": "Timing", "pin": ["time"]}] 150 | }, 151 | { 152 | "name": "Environment", 153 | "description": ["TensorFlow.js can run mathematical operations on", 154 | "different backends. Currently, we support WebGL and JavaScript", 155 | "CPU. By default, we choose the 'best' backend available, but", 156 | "allow users to customize their backend.
"], 157 | "subheadings": [{"name": "", "pin": ["setBackend"]}] 158 | }, 159 | { 160 | "name": "Constraints", 161 | "description": ["Constraints are added to attributes", 162 | "of a Layer (such as weights, kernels, or biases) at", 163 | "construction time to clamp, or otherwise enforce an allowed range,", 164 | "of values for different components of the Layer.
"], 165 | "subheadings": [{"name": ""}] 166 | }, 167 | { 168 | "name": "Initializers", 169 | "description": ["Initializers are used in Layers", 170 | "to establish the starting the values of weights, biases, kernels, ", 171 | "etc.
"], 172 | "subheadings": [{"name": ""}] 173 | }, 174 | { 175 | "name": "Regularizers", 176 | "description": ["Regularizers can be attached to various components", 177 | "of a Layer to add a 'scoring' function to help drive weights, or ", 178 | "other trainable values, away from excessively large values. They're", 179 | "typically used to promote a notion that a 'simpler' model is better", 180 | "than a complicated model, assuming equal performance.
"], 181 | "subheadings": [{"name": ""}] 182 | } 183 | 184 | ] 185 | -------------------------------------------------------------------------------- /source/_data/api/0.11.7/skeleton.json: -------------------------------------------------------------------------------- 1 | [ 2 | { 3 | "name": "Tensors", 4 | "description": ["Tensors are the core datastructure of TensorFlow.js", 5 | "They are a generalization of vectors and matrices to potentially", 6 | "higher dimensions.
"], 7 | "subheadings": [ 8 | { 9 | "name": "Creation", 10 | "description": [ 11 | "We have utility functions for common cases like Scalar, 1D,", 12 | "2D, 3D and 4D tensors, as well a number of functions to initialize", 13 | "tensors in ways useful for machine learning.
"], 14 | "pin": [ 15 | "tensor", "scalar", "tensor1d", "tensor2d", "tensor3d", "tensor4d", "tensor5d" 16 | ] 17 | }, 18 | { 19 | "name": "Classes", 20 | "description": ["", 21 | "This section shows the main Tensor related classes in TensorFlow.js and", 22 | "the methods we expose on them.", 23 | "
"], 24 | "pin": ["Tensor", "Variable", "TensorBuffer"] 25 | }, 26 | { 27 | "name": "Transformations", 28 | "description": ["This section describes some common Tensor", 29 | "transformations for reshaping and type-casting.
"] 30 | }, 31 | { 32 | "name": "Slicing and Joining", 33 | "description": ["TensorFlow.js provides several operations", 34 | "to slice or extract parts of a tensor, or join multiple", 35 | "tensors together."] 36 | } 37 | ] 38 | }, 39 | { 40 | "name": "Models", 41 | "description": ["
Models are one of the primary abstractions used in", 42 | "TensorFlow.js Layers. Models can be trained, evaluated, and used", 43 | "for prediction. A model's state (topology, and optionally, trained", 44 | "weights) can be restored from various formats.
", 45 | "Models are a collection of Layers, see Model Creation for", 46 | "details about how Layers can be connected.
"], 47 | "subheadings": [ 48 | { 49 | "name": "Creation", 50 | "description": ["There are two primary ways of creating models.
", 51 | "Layers are the primary building block for ", 72 | "constructing a Model. Each layer will typically perform some", 73 | "computation to transform its input to its output.
", 74 | "Layers will automatically take care of creating and initializing", 75 | "the various internal variables/weights they need to function.
"], 76 | "subheadings": [ 77 | { 78 | "name": "Advanced Activation", 79 | "description": [] 80 | }, 81 | { 82 | "name": "Basic", 83 | "description": [] 84 | }, 85 | { 86 | "name": "Convolutional", 87 | "description": [] 88 | }, 89 | { 90 | "name": "Merge", 91 | "description": [] 92 | }, 93 | { 94 | "name": "Normalization", 95 | "description": [] 96 | }, 97 | { 98 | "name": "Pooling", 99 | "description": [] 100 | }, 101 | { 102 | "name": "Recurrent", 103 | "description": [] 104 | }, 105 | { 106 | "name": "Wrapper", 107 | "description": [] 108 | } 109 | ] 110 | }, 111 | { 112 | "name": "Operations", 113 | "description": [], 114 | "subheadings": [ 115 | { 116 | "name": "Arithmetic", 117 | "description": ["To perform mathematical computation on Tensors, we use", 118 | "operations. Tensors are immutable, so all operations always return", 119 | "new Tensors and never modify input Tensors.
"], 120 | "pin": ["add", "sub", "mul", "div"] 121 | }, 122 | {"name": "Basic math"}, {"name": "Matrices"}, {"name": "Convolution"}, 123 | {"name": "Reduction"}, {"name": "Normalization"}, {"name": "Images"}, 124 | {"name": "RNN"}, {"name": "Logical"} 125 | ] 126 | }, 127 | { 128 | "name": "Training", 129 | "description": ["We also provide an API to do perform training, and", 130 | "compute gradients. We compute gradients eagerly, users provide a function", 131 | "that is a combination of operations and we automatically differentiate", 132 | "that function's output with respect to its inputs.", 133 | "
For those familiar with TensorFlow, the API we expose exactly mirrors", 134 | "the TensorFlow Eager API.", 135 | "
"], 136 | "subheadings": [ 137 | { 138 | "name": "Gradients", 139 | "pin": ["grad", "grads", "valAndGrad", "valAndGrads", "customGrad"] 140 | }, 141 | {"name": "Optimizers", "pin": ["sgd", "momentum", "adagrad", "adadelta"]}, 142 | {"name": "Losses"}, {"name": "Classes"} 143 | ] 144 | }, 145 | { 146 | "name": "Performance", 147 | "description": [], 148 | "subheadings": 149 | [{"name": "Memory", "pin": ["tidy"]}, {"name": "Timing", "pin": ["time"]}] 150 | }, 151 | { 152 | "name": "Environment", 153 | "description": ["TensorFlow.js can run mathematical operations on", 154 | "different backends. Currently, we support WebGL and JavaScript", 155 | "CPU. By default, we choose the 'best' backend available, but", 156 | "allow users to customize their backend.
"], 157 | "subheadings": [{"name": "", "pin": ["setBackend"]}] 158 | }, 159 | { 160 | "name": "Constraints", 161 | "description": ["Constraints are added to attributes", 162 | "of a Layer (such as weights, kernels, or biases) at", 163 | "construction time to clamp, or otherwise enforce an allowed range,", 164 | "of values for different components of the Layer.
"], 165 | "subheadings": [{"name": ""}] 166 | }, 167 | { 168 | "name": "Initializers", 169 | "description": ["Initializers are used in Layers", 170 | "to establish the starting the values of weights, biases, kernels, ", 171 | "etc.
"], 172 | "subheadings": [{"name": ""}] 173 | }, 174 | { 175 | "name": "Regularizers", 176 | "description": ["Regularizers can be attached to various components", 177 | "of a Layer to add a 'scoring' function to help drive weights, or ", 178 | "other trainable values, away from excessively large values. They're", 179 | "typically used to promote a notion that a 'simpler' model is better", 180 | "than a complicated model, assuming equal performance.
"], 181 | "subheadings": [{"name": ""}] 182 | } 183 | 184 | ] 185 | -------------------------------------------------------------------------------- /source/_data/api/0.12.0/skeleton.json: -------------------------------------------------------------------------------- 1 | [ 2 | { 3 | "name": "Tensors", 4 | "description": ["Tensors are the core datastructure of TensorFlow.js", 5 | "They are a generalization of vectors and matrices to potentially", 6 | "higher dimensions.
"], 7 | "subheadings": [ 8 | { 9 | "name": "Creation", 10 | "description": [ 11 | "We have utility functions for common cases like Scalar, 1D,", 12 | "2D, 3D and 4D tensors, as well a number of functions to initialize", 13 | "tensors in ways useful for machine learning.
"], 14 | "pin": [ 15 | "tensor", "scalar", "tensor1d", "tensor2d", "tensor3d", "tensor4d", "tensor5d" 16 | ] 17 | }, 18 | { 19 | "name": "Classes", 20 | "description": ["", 21 | "This section shows the main Tensor related classes in TensorFlow.js and", 22 | "the methods we expose on them.", 23 | "
"], 24 | "pin": ["Tensor", "Variable", "TensorBuffer"] 25 | }, 26 | { 27 | "name": "Transformations", 28 | "description": ["This section describes some common Tensor", 29 | "transformations for reshaping and type-casting.
"] 30 | }, 31 | { 32 | "name": "Slicing and Joining", 33 | "description": ["TensorFlow.js provides several operations", 34 | "to slice or extract parts of a tensor, or join multiple", 35 | "tensors together."] 36 | } 37 | ] 38 | }, 39 | { 40 | "name": "Models", 41 | "description": ["
Models are one of the primary abstractions used in", 42 | "TensorFlow.js Layers. Models can be trained, evaluated, and used", 43 | "for prediction. A model's state (topology, and optionally, trained", 44 | "weights) can be restored from various formats.
", 45 | "Models are a collection of Layers, see Model Creation for", 46 | "details about how Layers can be connected.
"], 47 | "subheadings": [ 48 | { 49 | "name": "Creation", 50 | "description": ["There are two primary ways of creating models.
", 51 | "Layers are the primary building block for ", 72 | "constructing a Model. Each layer will typically perform some", 73 | "computation to transform its input to its output.
", 74 | "Layers will automatically take care of creating and initializing", 75 | "the various internal variables/weights they need to function.
"], 76 | "subheadings": [ 77 | { 78 | "name": "Advanced Activation", 79 | "description": [] 80 | }, 81 | { 82 | "name": "Basic", 83 | "description": [] 84 | }, 85 | { 86 | "name": "Convolutional", 87 | "description": [] 88 | }, 89 | { 90 | "name": "Merge", 91 | "description": [] 92 | }, 93 | { 94 | "name": "Normalization", 95 | "description": [] 96 | }, 97 | { 98 | "name": "Pooling", 99 | "description": [] 100 | }, 101 | { 102 | "name": "Recurrent", 103 | "description": [] 104 | }, 105 | { 106 | "name": "Wrapper", 107 | "description": [] 108 | } 109 | ] 110 | }, 111 | { 112 | "name": "Operations", 113 | "description": [], 114 | "subheadings": [ 115 | { 116 | "name": "Arithmetic", 117 | "description": ["To perform mathematical computation on Tensors, we use", 118 | "operations. Tensors are immutable, so all operations always return", 119 | "new Tensors and never modify input Tensors.
"], 120 | "pin": ["add", "sub", "mul", "div"] 121 | }, 122 | {"name": "Basic math"}, {"name": "Matrices"}, {"name": "Convolution"}, 123 | {"name": "Reduction"}, {"name": "Normalization"}, {"name": "Images"}, 124 | {"name": "RNN"}, {"name": "Logical"} 125 | ] 126 | }, 127 | { 128 | "name": "Training", 129 | "description": ["We also provide an API to do perform training, and", 130 | "compute gradients. We compute gradients eagerly, users provide a function", 131 | "that is a combination of operations and we automatically differentiate", 132 | "that function's output with respect to its inputs.", 133 | "
For those familiar with TensorFlow, the API we expose exactly mirrors", 134 | "the TensorFlow Eager API.", 135 | "
"], 136 | "subheadings": [ 137 | { 138 | "name": "Gradients", 139 | "pin": ["grad", "grads", "valAndGrad", "valAndGrads", "customGrad"] 140 | }, 141 | {"name": "Optimizers", "pin": ["sgd", "momentum", "adagrad", "adadelta"]}, 142 | {"name": "Losses"}, {"name": "Classes"} 143 | ] 144 | }, 145 | { 146 | "name": "Performance", 147 | "description": [], 148 | "subheadings": 149 | [{"name": "Memory", "pin": ["tidy"]}, {"name": "Timing", "pin": ["time"]}] 150 | }, 151 | { 152 | "name": "Environment", 153 | "description": ["TensorFlow.js can run mathematical operations on", 154 | "different backends. Currently, we support WebGL and JavaScript", 155 | "CPU. By default, we choose the 'best' backend available, but", 156 | "allow users to customize their backend.
"], 157 | "subheadings": [{"name": "", "pin": ["setBackend"]}] 158 | }, 159 | { 160 | "name": "Constraints", 161 | "description": ["Constraints are added to attributes", 162 | "of a Layer (such as weights, kernels, or biases) at", 163 | "construction time to clamp, or otherwise enforce an allowed range,", 164 | "of values for different components of the Layer.
"], 165 | "subheadings": [{"name": ""}] 166 | }, 167 | { 168 | "name": "Initializers", 169 | "description": ["Initializers are used in Layers", 170 | "to establish the starting the values of weights, biases, kernels, ", 171 | "etc.
"], 172 | "subheadings": [{"name": ""}] 173 | }, 174 | { 175 | "name": "Regularizers", 176 | "description": ["Regularizers can be attached to various components", 177 | "of a Layer to add a 'scoring' function to help drive weights, or ", 178 | "other trainable values, away from excessively large values. They're", 179 | "typically used to promote a notion that a 'simpler' model is better", 180 | "than a complicated model, assuming equal performance.
"], 181 | "subheadings": [{"name": ""}] 182 | } 183 | 184 | ] 185 | -------------------------------------------------------------------------------- /themes/dljs/layout/setup.hbs: -------------------------------------------------------------------------------- 1 | {{#if page.bannerText}} 2 | 5 | {{/if}} 6 | 7 | 8 | // Define a model for linear regression. 9 | const model = tf.sequential(); 10 | model.add(tf.layers.dense({units: 1, inputShape: [1]})); 11 | 12 | model.compile({loss: 'meanSquaredError', optimizer: 'sgd'}); 13 | 14 | // Generate some synthetic data for training. 15 | const xs = tf.tensor2d([1, 2, 3, 4], [4, 1]); 16 | const ys = tf.tensor2d([1, 3, 5, 7], [4, 1]); 17 | 18 | // Train the model using the data. 19 | model.fit(xs, ys, {epochs: 10}).then(() => { 20 | // Use the model to do inference on a data point the model hasn't seen before: 21 | model.predict(tf.tensor2d([5], [1, 1])).print(); 22 | // Open the browser devtools to see the output 23 | }); 24 | 25 | 26 | 27 | import * as tf from '@tensorflow/tfjs'; 28 | 29 | // Define a model for linear regression. 30 | const model = tf.sequential(); 31 | model.add(tf.layers.dense({units: 1, inputShape: [1]})); 32 | 33 | model.compile({loss: 'meanSquaredError', optimizer: 'sgd'}); 34 | 35 | // Generate some synthetic data for training. 36 | const xs = tf.tensor2d([1, 2, 3, 4], [4, 1]); 37 | const ys = tf.tensor2d([1, 3, 5, 7], [4, 1]); 38 | 39 | // Train the model using the data. 40 | model.fit(xs, ys, {epochs: 10}).then(() => { 41 | // Use the model to do inference on a data point the model hasn't seen before: 42 | model.predict(tf.tensor2d([5], [1, 1])).print(); 43 | // Open the browser devtools to see the output 44 | }); 45 | 46 | 47 | 48 | const tf = require('@tensorflow/tfjs'); 49 | 50 | // Optional Load the binding: 51 | // Use '@tensorflow/tfjs-node-gpu' if running with GPU. 52 | require('@tensorflow/tfjs-node'); 53 | 54 | // Train a simple model: 55 | const model = tf.sequential(); 56 | model.add(tf.layers.dense({units: 100, activation: 'relu', inputShape: [10]})); 57 | model.add(tf.layers.dense({units: 1, activation: 'linear'})); 58 | model.compile({optimizer: 'sgd', loss: 'meanSquaredError'}); 59 | 60 | const xs = tf.randomNormal([100, 10]); 61 | const ys = tf.randomNormal([100, 1]); 62 | 63 | model.fit(xs, ys, { 64 | epochs: 100, 65 | callbacks: { 66 | onEpochEnd: (epoch, log) => console.log(`Epoch ${epoch}: loss = ${log.loss}`); 67 | } 68 | }); 69 | 70 | {{!-- // clang-format on --}} 71 | 72 |78 | There are two main ways to get TensorFlow.js in your browser based projects: via 79 | 80 | script tags 81 | or by installing it from 82 | NPM 83 | and using a build tool like 84 | Parcel, 85 | WebPack, or 86 | Rollup. 87 |
88 | 89 |90 | If you are new to web development, or have never heard of tools like webpack or parcel, we recommend you 91 | use the script tag approach. If you are more experienced or want to write larger programs it might be 92 | worthwhile to explore using build tools. 93 |
94 | 95 |Add the following script tag to your main HTML file.
97 | 98 |
100 |
101 | <script src="https://cdn.jsdelivr.net/npm/@tensorflow/tfjs@{{latestVersion}}/dist/tf.min.js"></script>
102 |
103 |
104 | yarn add @tensorflow/tfjs
116 | or
117 | npm install @tensorflow/tfjs
118 | yarn add @tensorflow/tfjs-node
136 | or
137 | npm install @tensorflow/tfjs-node
138 | yarn add @tensorflow/tfjs-node-gpu
147 | or
148 | npm install @tensorflow/tfjs-node-gpu
149 | yarn add @tensorflow/tfjs
156 | or
157 | npm install @tensorflow/tfjs
158 | Tensors are the core datastructure of TensorFlow.js", 6 | "They are a generalization of vectors and matrices to potentially", 7 | "higher dimensions.
" 8 | ], 9 | "subheadings": [ 10 | { 11 | "name": "Creation", 12 | "description": [ 13 | "We have utility functions for common cases like Scalar, 1D,", 14 | "2D, 3D and 4D tensors, as well a number of functions to initialize", 15 | "tensors in ways useful for machine learning.
" 16 | ], 17 | "pin": [ 18 | "tensor", 19 | "scalar", 20 | "tensor1d", 21 | "tensor2d", 22 | "tensor3d", 23 | "tensor4d", 24 | "tensor5d", 25 | "tensor6d" 26 | ] 27 | }, 28 | { 29 | "name": "Classes", 30 | "description": [ 31 | "", 32 | "This section shows the main Tensor related classes in TensorFlow.js and", 33 | "the methods we expose on them.", 34 | "
" 35 | ], 36 | "pin": [ 37 | "Tensor", 38 | "Variable", 39 | "TensorBuffer" 40 | ] 41 | }, 42 | { 43 | "name": "Transformations", 44 | "description": [ 45 | "This section describes some common Tensor", 46 | "transformations for reshaping and type-casting.
" 47 | ] 48 | }, 49 | { 50 | "name": "Slicing and Joining", 51 | "description": [ 52 | "TensorFlow.js provides several operations", 53 | "to slice or extract parts of a tensor, or join multiple", 54 | "tensors together." 55 | ] 56 | } 57 | ] 58 | }, 59 | { 60 | "name": "Models", 61 | "description": [ 62 | "
Models are one of the primary abstractions used in", 63 | "TensorFlow.js Layers. Models can be trained, evaluated, and used", 64 | "for prediction. A model's state (topology, and optionally, trained", 65 | "weights) can be restored from various formats.
", 66 | "Models are a collection of Layers, see Model Creation for", 67 | "details about how Layers can be connected.
" 68 | ], 69 | "subheadings": [ 70 | { 71 | "name": "Creation", 72 | "description": [ 73 | "There are two primary ways of creating models.
", 74 | "Layers are the primary building block for ", 100 | "constructing a Model. Each layer will typically perform some", 101 | "computation to transform its input to its output.
", 102 | "Layers will automatically take care of creating and initializing", 103 | "the various internal variables/weights they need to function.
" 104 | ], 105 | "subheadings": [ 106 | { 107 | "name": "Advanced Activation", 108 | "description": [] 109 | }, 110 | { 111 | "name": "Basic", 112 | "description": [] 113 | }, 114 | { 115 | "name": "Convolutional", 116 | "description": [] 117 | }, 118 | { 119 | "name": "Merge", 120 | "description": [] 121 | }, 122 | { 123 | "name": "Normalization", 124 | "description": [] 125 | }, 126 | { 127 | "name": "Pooling", 128 | "description": [] 129 | }, 130 | { 131 | "name": "Recurrent", 132 | "description": [] 133 | }, 134 | { 135 | "name": "Wrapper", 136 | "description": [] 137 | } 138 | ] 139 | }, 140 | { 141 | "name": "Operations", 142 | "description": [], 143 | "subheadings": [ 144 | { 145 | "name": "Arithmetic", 146 | "description": [ 147 | "To perform mathematical computation on Tensors, we use", 148 | "operations. Tensors are immutable, so all operations always return", 149 | "new Tensors and never modify input Tensors.
" 150 | ], 151 | "pin": [ 152 | "add", 153 | "sub", 154 | "mul", 155 | "div" 156 | ] 157 | }, 158 | { 159 | "name": "Basic math" 160 | }, 161 | { 162 | "name": "Matrices" 163 | }, 164 | { 165 | "name": "Convolution" 166 | }, 167 | { 168 | "name": "Reduction" 169 | }, 170 | { 171 | "name": "Normalization" 172 | }, 173 | { 174 | "name": "Images" 175 | }, 176 | { 177 | "name": "RNN" 178 | }, 179 | { 180 | "name": "Logical" 181 | } 182 | ] 183 | }, 184 | { 185 | "name": "Training", 186 | "description": [ 187 | "We also provide an API to do perform training, and", 188 | "compute gradients. We compute gradients eagerly, users provide a function", 189 | "that is a combination of operations and we automatically differentiate", 190 | "that function's output with respect to its inputs.", 191 | "
For those familiar with TensorFlow, the API we expose exactly mirrors", 192 | "the TensorFlow Eager API.", 193 | "
" 194 | ], 195 | "subheadings": [ 196 | { 197 | "name": "Gradients", 198 | "pin": [ 199 | "grad", 200 | "grads", 201 | "valAndGrad", 202 | "valAndGrads", 203 | "customGrad" 204 | ] 205 | }, 206 | { 207 | "name": "Optimizers", 208 | "pin": [ 209 | "sgd", 210 | "momentum", 211 | "adagrad", 212 | "adadelta" 213 | ] 214 | }, 215 | { 216 | "name": "Losses" 217 | }, 218 | { 219 | "name": "Classes" 220 | } 221 | ] 222 | }, 223 | { 224 | "name": "Performance", 225 | "description": [], 226 | "subheadings": [ 227 | { 228 | "name": "Memory", 229 | "pin": [ 230 | "tidy" 231 | ] 232 | }, 233 | { 234 | "name": "Timing", 235 | "pin": [ 236 | "time" 237 | ] 238 | } 239 | ] 240 | }, 241 | { 242 | "name": "Environment", 243 | "description": [ 244 | "TensorFlow.js can run mathematical operations on", 245 | "different backends. Currently, we support WebGL and JavaScript", 246 | "CPU. By default, we choose the 'best' backend available, but", 247 | "allow users to customize their backend.
" 248 | ], 249 | "subheadings": [] 250 | }, 251 | { 252 | "name": "Constraints", 253 | "description": [ 254 | "Constraints are added to attributes", 255 | "of a Layer (such as weights, kernels, or biases) at", 256 | "construction time to clamp, or otherwise enforce an allowed range,", 257 | "of values for different components of the Layer.
" 258 | ], 259 | "subheadings": [] 260 | }, 261 | { 262 | "name": "Initializers", 263 | "description": [ 264 | "Initializers are used in Layers", 265 | "to establish the starting the values of weights, biases, kernels, ", 266 | "etc.
" 267 | ], 268 | "subheadings": [] 269 | }, 270 | { 271 | "name": "Regularizers", 272 | "description": [ 273 | "Regularizers can be attached to various components", 274 | "of a Layer to add a 'scoring' function to help drive weights, or ", 275 | "other trainable values, away from excessively large values. They're", 276 | "typically used to promote a notion that a 'simpler' model is better", 277 | "than a complicated model, assuming equal performance.
" 278 | ], 279 | "subheadings": [] 280 | } 281 | ] 282 | -------------------------------------------------------------------------------- /source/_data/api/0.13.0/skeleton.json: -------------------------------------------------------------------------------- 1 | [ 2 | { 3 | "name": "Tensors", 4 | "description": [ 5 | "Tensors are the core datastructure of TensorFlow.js", 6 | "They are a generalization of vectors and matrices to potentially", 7 | "higher dimensions.
" 8 | ], 9 | "subheadings": [ 10 | { 11 | "name": "Creation", 12 | "description": [ 13 | "We have utility functions for common cases like Scalar, 1D,", 14 | "2D, 3D and 4D tensors, as well a number of functions to initialize", 15 | "tensors in ways useful for machine learning.
" 16 | ], 17 | "pin": [ 18 | "tensor", 19 | "scalar", 20 | "tensor1d", 21 | "tensor2d", 22 | "tensor3d", 23 | "tensor4d", 24 | "tensor5d", 25 | "tensor6d" 26 | ] 27 | }, 28 | { 29 | "name": "Classes", 30 | "description": [ 31 | "", 32 | "This section shows the main Tensor related classes in TensorFlow.js and", 33 | "the methods we expose on them.", 34 | "
" 35 | ], 36 | "pin": [ 37 | "Tensor", 38 | "Variable", 39 | "TensorBuffer" 40 | ] 41 | }, 42 | { 43 | "name": "Transformations", 44 | "description": [ 45 | "This section describes some common Tensor", 46 | "transformations for reshaping and type-casting.
" 47 | ] 48 | }, 49 | { 50 | "name": "Slicing and Joining", 51 | "description": [ 52 | "TensorFlow.js provides several operations", 53 | "to slice or extract parts of a tensor, or join multiple", 54 | "tensors together." 55 | ] 56 | } 57 | ] 58 | }, 59 | { 60 | "name": "Models", 61 | "description": [ 62 | "
Models are one of the primary abstractions used in", 63 | "TensorFlow.js Layers. Models can be trained, evaluated, and used", 64 | "for prediction. A model's state (topology, and optionally, trained", 65 | "weights) can be restored from various formats.
", 66 | "Models are a collection of Layers, see Model Creation for", 67 | "details about how Layers can be connected.
" 68 | ], 69 | "subheadings": [ 70 | { 71 | "name": "Creation", 72 | "description": [ 73 | "There are two primary ways of creating models.
", 74 | "Layers are the primary building block for ", 100 | "constructing a Model. Each layer will typically perform some", 101 | "computation to transform its input to its output.
", 102 | "Layers will automatically take care of creating and initializing", 103 | "the various internal variables/weights they need to function.
" 104 | ], 105 | "subheadings": [ 106 | { 107 | "name": "Advanced Activation", 108 | "description": [] 109 | }, 110 | { 111 | "name": "Basic", 112 | "description": [] 113 | }, 114 | { 115 | "name": "Convolutional", 116 | "description": [] 117 | }, 118 | { 119 | "name": "Merge", 120 | "description": [] 121 | }, 122 | { 123 | "name": "Normalization", 124 | "description": [] 125 | }, 126 | { 127 | "name": "Pooling", 128 | "description": [] 129 | }, 130 | { 131 | "name": "Recurrent", 132 | "description": [] 133 | }, 134 | { 135 | "name": "Wrapper", 136 | "description": [] 137 | } 138 | ] 139 | }, 140 | { 141 | "name": "Operations", 142 | "description": [], 143 | "subheadings": [ 144 | { 145 | "name": "Arithmetic", 146 | "description": [ 147 | "To perform mathematical computation on Tensors, we use", 148 | "operations. Tensors are immutable, so all operations always return", 149 | "new Tensors and never modify input Tensors.
" 150 | ], 151 | "pin": [ 152 | "add", 153 | "sub", 154 | "mul", 155 | "div" 156 | ] 157 | }, 158 | { 159 | "name": "Basic math" 160 | }, 161 | { 162 | "name": "Matrices" 163 | }, 164 | { 165 | "name": "Convolution" 166 | }, 167 | { 168 | "name": "Reduction" 169 | }, 170 | { 171 | "name": "Normalization" 172 | }, 173 | { 174 | "name": "Images" 175 | }, 176 | { 177 | "name": "RNN" 178 | }, 179 | { 180 | "name": "Logical" 181 | } 182 | ] 183 | }, 184 | { 185 | "name": "Training", 186 | "description": [ 187 | "We also provide an API to do perform training, and", 188 | "compute gradients. We compute gradients eagerly, users provide a function", 189 | "that is a combination of operations and we automatically differentiate", 190 | "that function's output with respect to its inputs.", 191 | "
For those familiar with TensorFlow, the API we expose exactly mirrors", 192 | "the TensorFlow Eager API.", 193 | "
" 194 | ], 195 | "subheadings": [ 196 | { 197 | "name": "Gradients", 198 | "pin": [ 199 | "grad", 200 | "grads", 201 | "valAndGrad", 202 | "valAndGrads", 203 | "customGrad" 204 | ] 205 | }, 206 | { 207 | "name": "Optimizers", 208 | "pin": [ 209 | "sgd", 210 | "momentum", 211 | "adagrad", 212 | "adadelta" 213 | ] 214 | }, 215 | { 216 | "name": "Losses" 217 | }, 218 | { 219 | "name": "Classes" 220 | } 221 | ] 222 | }, 223 | { 224 | "name": "Performance", 225 | "description": [], 226 | "subheadings": [ 227 | { 228 | "name": "Memory", 229 | "pin": [ 230 | "tidy" 231 | ] 232 | }, 233 | { 234 | "name": "Timing", 235 | "pin": [ 236 | "time" 237 | ] 238 | } 239 | ] 240 | }, 241 | { 242 | "name": "Environment", 243 | "description": [ 244 | "TensorFlow.js can run mathematical operations on", 245 | "different backends. Currently, we support WebGL and JavaScript", 246 | "CPU. By default, we choose the 'best' backend available, but", 247 | "allow users to customize their backend.
" 248 | ], 249 | "subheadings": [] 250 | }, 251 | { 252 | "name": "Constraints", 253 | "description": [ 254 | "Constraints are added to attributes", 255 | "of a Layer (such as weights, kernels, or biases) at", 256 | "construction time to clamp, or otherwise enforce an allowed range,", 257 | "of values for different components of the Layer.
" 258 | ], 259 | "subheadings": [] 260 | }, 261 | { 262 | "name": "Initializers", 263 | "description": [ 264 | "Initializers are used in Layers", 265 | "to establish the starting the values of weights, biases, kernels, ", 266 | "etc.
" 267 | ], 268 | "subheadings": [] 269 | }, 270 | { 271 | "name": "Regularizers", 272 | "description": [ 273 | "Regularizers can be attached to various components", 274 | "of a Layer to add a 'scoring' function to help drive weights, or ", 275 | "other trainable values, away from excessively large values. They're", 276 | "typically used to promote a notion that a 'simpler' model is better", 277 | "than a complicated model, assuming equal performance.
" 278 | ], 279 | "subheadings": [] 280 | } 281 | ] 282 | -------------------------------------------------------------------------------- /source/_data/api/0.13.3/skeleton.json: -------------------------------------------------------------------------------- 1 | [ 2 | { 3 | "name": "Tensors", 4 | "description": [ 5 | "Tensors are the core datastructure of TensorFlow.js", 6 | "They are a generalization of vectors and matrices to potentially", 7 | "higher dimensions.
" 8 | ], 9 | "subheadings": [ 10 | { 11 | "name": "Creation", 12 | "description": [ 13 | "We have utility functions for common cases like Scalar, 1D,", 14 | "2D, 3D and 4D tensors, as well a number of functions to initialize", 15 | "tensors in ways useful for machine learning.
" 16 | ], 17 | "pin": [ 18 | "tensor", 19 | "scalar", 20 | "tensor1d", 21 | "tensor2d", 22 | "tensor3d", 23 | "tensor4d", 24 | "tensor5d", 25 | "tensor6d" 26 | ] 27 | }, 28 | { 29 | "name": "Classes", 30 | "description": [ 31 | "", 32 | "This section shows the main Tensor related classes in TensorFlow.js and", 33 | "the methods we expose on them.", 34 | "
" 35 | ], 36 | "pin": [ 37 | "Tensor", 38 | "Variable", 39 | "TensorBuffer" 40 | ] 41 | }, 42 | { 43 | "name": "Transformations", 44 | "description": [ 45 | "This section describes some common Tensor", 46 | "transformations for reshaping and type-casting.
" 47 | ] 48 | }, 49 | { 50 | "name": "Slicing and Joining", 51 | "description": [ 52 | "TensorFlow.js provides several operations", 53 | "to slice or extract parts of a tensor, or join multiple", 54 | "tensors together." 55 | ] 56 | } 57 | ] 58 | }, 59 | { 60 | "name": "Models", 61 | "description": [ 62 | "
Models are one of the primary abstractions used in", 63 | "TensorFlow.js Layers. Models can be trained, evaluated, and used", 64 | "for prediction. A model's state (topology, and optionally, trained", 65 | "weights) can be restored from various formats.
", 66 | "Models are a collection of Layers, see Model Creation for", 67 | "details about how Layers can be connected.
" 68 | ], 69 | "subheadings": [ 70 | { 71 | "name": "Creation", 72 | "description": [ 73 | "There are two primary ways of creating models.
", 74 | "Layers are the primary building block for ", 100 | "constructing a Model. Each layer will typically perform some", 101 | "computation to transform its input to its output.
", 102 | "Layers will automatically take care of creating and initializing", 103 | "the various internal variables/weights they need to function.
" 104 | ], 105 | "subheadings": [ 106 | { 107 | "name": "Advanced Activation", 108 | "description": [] 109 | }, 110 | { 111 | "name": "Basic", 112 | "description": [] 113 | }, 114 | { 115 | "name": "Convolutional", 116 | "description": [] 117 | }, 118 | { 119 | "name": "Merge", 120 | "description": [] 121 | }, 122 | { 123 | "name": "Normalization", 124 | "description": [] 125 | }, 126 | { 127 | "name": "Pooling", 128 | "description": [] 129 | }, 130 | { 131 | "name": "Recurrent", 132 | "description": [] 133 | }, 134 | { 135 | "name": "Wrapper", 136 | "description": [] 137 | } 138 | ] 139 | }, 140 | { 141 | "name": "Operations", 142 | "description": [], 143 | "subheadings": [ 144 | { 145 | "name": "Arithmetic", 146 | "description": [ 147 | "To perform mathematical computation on Tensors, we use", 148 | "operations. Tensors are immutable, so all operations always return", 149 | "new Tensors and never modify input Tensors.
" 150 | ], 151 | "pin": [ 152 | "add", 153 | "sub", 154 | "mul", 155 | "div" 156 | ] 157 | }, 158 | { 159 | "name": "Basic math" 160 | }, 161 | { 162 | "name": "Matrices" 163 | }, 164 | { 165 | "name": "Convolution" 166 | }, 167 | { 168 | "name": "Reduction" 169 | }, 170 | { 171 | "name": "Normalization" 172 | }, 173 | { 174 | "name": "Images" 175 | }, 176 | { 177 | "name": "RNN" 178 | }, 179 | { 180 | "name": "Logical" 181 | } 182 | ] 183 | }, 184 | { 185 | "name": "Training", 186 | "description": [ 187 | "We also provide an API to do perform training, and", 188 | "compute gradients. We compute gradients eagerly, users provide a function", 189 | "that is a combination of operations and we automatically differentiate", 190 | "that function's output with respect to its inputs.", 191 | "
For those familiar with TensorFlow, the API we expose exactly mirrors", 192 | "the TensorFlow Eager API.", 193 | "
" 194 | ], 195 | "subheadings": [ 196 | { 197 | "name": "Gradients", 198 | "pin": [ 199 | "grad", 200 | "grads", 201 | "valAndGrad", 202 | "valAndGrads", 203 | "customGrad" 204 | ] 205 | }, 206 | { 207 | "name": "Optimizers", 208 | "pin": [ 209 | "sgd", 210 | "momentum", 211 | "adagrad", 212 | "adadelta" 213 | ] 214 | }, 215 | { 216 | "name": "Losses" 217 | }, 218 | { 219 | "name": "Classes" 220 | } 221 | ] 222 | }, 223 | { 224 | "name": "Performance", 225 | "description": [], 226 | "subheadings": [ 227 | { 228 | "name": "Memory", 229 | "pin": [ 230 | "tidy" 231 | ] 232 | }, 233 | { 234 | "name": "Timing", 235 | "pin": [ 236 | "time" 237 | ] 238 | } 239 | ] 240 | }, 241 | { 242 | "name": "Environment", 243 | "description": [ 244 | "TensorFlow.js can run mathematical operations on", 245 | "different backends. Currently, we support WebGL and JavaScript", 246 | "CPU. By default, we choose the 'best' backend available, but", 247 | "allow users to customize their backend.
" 248 | ], 249 | "subheadings": [] 250 | }, 251 | { 252 | "name": "Constraints", 253 | "description": [ 254 | "Constraints are added to attributes", 255 | "of a Layer (such as weights, kernels, or biases) at", 256 | "construction time to clamp, or otherwise enforce an allowed range,", 257 | "of values for different components of the Layer.
" 258 | ], 259 | "subheadings": [] 260 | }, 261 | { 262 | "name": "Initializers", 263 | "description": [ 264 | "Initializers are used in Layers", 265 | "to establish the starting the values of weights, biases, kernels, ", 266 | "etc.
" 267 | ], 268 | "subheadings": [] 269 | }, 270 | { 271 | "name": "Regularizers", 272 | "description": [ 273 | "Regularizers can be attached to various components", 274 | "of a Layer to add a 'scoring' function to help drive weights, or ", 275 | "other trainable values, away from excessively large values. They're", 276 | "typically used to promote a notion that a 'simpler' model is better", 277 | "than a complicated model, assuming equal performance.
" 278 | ], 279 | "subheadings": [] 280 | } 281 | ] 282 | --------------------------------------------------------------------------------