Package Exports
- @tensorflow/tfjs-core
- @tensorflow/tfjs-core/dist/backends/backend
- @tensorflow/tfjs-core/dist/backends/backend.js
- @tensorflow/tfjs-core/dist/base.js
- @tensorflow/tfjs-core/dist/engine
- @tensorflow/tfjs-core/dist/engine.js
- @tensorflow/tfjs-core/dist/environment
- @tensorflow/tfjs-core/dist/environment.js
- @tensorflow/tfjs-core/dist/index.js
- @tensorflow/tfjs-core/dist/io/io_utils
- @tensorflow/tfjs-core/dist/io/io_utils.js
- @tensorflow/tfjs-core/dist/jasmine_util
- @tensorflow/tfjs-core/dist/jasmine_util.js
- @tensorflow/tfjs-core/dist/kernel_registry
- @tensorflow/tfjs-core/dist/kernel_registry.js
- @tensorflow/tfjs-core/dist/ops/concat_4d
- @tensorflow/tfjs-core/dist/ops/concat_4d.js
- @tensorflow/tfjs-core/dist/ops/mirror_pad
- @tensorflow/tfjs-core/dist/ops/mirror_pad.js
- @tensorflow/tfjs-core/dist/ops/ops_for_converter
- @tensorflow/tfjs-core/dist/ops/ops_for_converter.js
- @tensorflow/tfjs-core/dist/ops/pad4d
- @tensorflow/tfjs-core/dist/ops/pad4d.js
- @tensorflow/tfjs-core/dist/ops/slice4d
- @tensorflow/tfjs-core/dist/ops/slice4d.js
- @tensorflow/tfjs-core/dist/ops/tensor
- @tensorflow/tfjs-core/dist/ops/tensor.js
- @tensorflow/tfjs-core/dist/ops/tensor1d
- @tensorflow/tfjs-core/dist/ops/tensor1d.js
- @tensorflow/tfjs-core/dist/public/chained_ops/register_all_chained_ops
- @tensorflow/tfjs-core/dist/public/chained_ops/register_all_chained_ops.js
- @tensorflow/tfjs-core/dist/register_all_gradients
- @tensorflow/tfjs-core/dist/register_all_gradients.js
- @tensorflow/tfjs-core/dist/scripts/test_snippets/util
- @tensorflow/tfjs-core/dist/scripts/test_snippets/util.js
- @tensorflow/tfjs-core/dist/tensor_util
- @tensorflow/tfjs-core/dist/tensor_util.js
- @tensorflow/tfjs-core/dist/test_util
- @tensorflow/tfjs-core/dist/test_util.js
- @tensorflow/tfjs-core/dist/tests
- @tensorflow/tfjs-core/dist/tests.js
- @tensorflow/tfjs-core/dist/tf-core.js
- @tensorflow/tfjs-core/dist/tf-core.node.js
- @tensorflow/tfjs-core/dist/types
- @tensorflow/tfjs-core/dist/types.js
- @tensorflow/tfjs-core/dist/util
- @tensorflow/tfjs-core/dist/util.js
- @tensorflow/tfjs-core/dist/util_base
- @tensorflow/tfjs-core/dist/util_base.js
- @tensorflow/tfjs-core/package.json
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (@tensorflow/tfjs-core) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
TensorFlow.js Core API
A part of the TensorFlow.js ecosystem, this repo hosts @tensorflow/tfjs-core
,
the TensorFlow.js Core API, which provides low-level, hardware-accelerated
linear algebra operations and an eager API for automatic differentiation.
Check out js.tensorflow.org for more information about the library, tutorials and API docs.
To keep track of issues we use the tensorflow/tfjs Github repo.
Importing
You can install TensorFlow.js via yarn or npm. We recommend using the @tensorflow/tfjs npm package, which gives you both this Core API and the higher-level Layers API:
import * as tf from '@tensorflow/tfjs';
// You have the Core API: tf.matMul(), tf.softmax(), ...
// You also have Layers API: tf.model(), tf.layers.dense(), ...
On the other hand, if you care about the bundle size and you do not use the Layers API, you can import only the Core API:
import * as tfc from '@tensorflow/tfjs-core';
// You have the Core API: tfc.matMul(), tfc.softmax(), ...
// No Layers API.
Note: If you are only importing the Core API, you also need to import a backend (e.g., tfjs-backend-cpu, tfjs-backend-webgl, tfjs-backend-wasm).
For info about development, check out DEVELOPMENT.md.
For more information
Thanks BrowserStack for providing testing support.