TypeScript Other
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
.vscode Use latest typescript compiler (v2.7.2) (#749) Feb 18, 2018
integration_tests/benchmarks Add missing licenses (#1019) May 4, 2018
models Convert core to use rollup for bundling. (#1037) May 17, 2018
scripts Convert core to use rollup for bundling. (#1037) May 17, 2018
src added inference model interface for sharing between layer model and f… May 23, 2018
.gitignore Convert core to use rollup for bundling. (#1037) May 17, 2018
.npmignore Update version to 0.6.1. (#922) Apr 5, 2018
.npmrc initial commit Aug 3, 2017
.travis.yml Convert core to use rollup for bundling. (#1037) May 17, 2018
CONTRIBUTING.md Implement floordiv for integer division & update CONTRIBUTING.md. (#960) Apr 17, 2018
DEVELOPMENT.md Update readme (#910) Mar 30, 2018
ISSUE_TEMPLATE.md Issues Template: Redirects users to union repository. (#931) Apr 10, 2018
LICENSE initial commit Aug 3, 2017
README.md Update readme Apr 26, 2018
karma.conf.js Convert core to use rollup for bundling. (#1037) May 17, 2018
package.json Bump version to 0.11.1 (#1056) May 23, 2018
pull_request_template.md adds pull request template (#1036) May 15, 2018
rollup.config.js Convert core to use rollup for bundling. (#1037) May 17, 2018
tsconfig-es5.json Convert core to use rollup for bundling. (#1037) May 17, 2018
tsconfig.json Convert core to use rollup for bundling. (#1037) May 17, 2018
tslint.json Add quotemark rule to tslint. (#975) Apr 22, 2018
yarn.lock Convert core to use rollup for bundling. (#1037) May 17, 2018

README.md

TensorFlow.js Core API

NOTE: Building on the momentum of deeplearn.js, we have joined the TensorFlow family and we are starting a new ecosystem of libraries and tools for Machine Learning in Javascript, called TensorFlow.js. This repo moved from PAIR-code/deeplearnjs to tensorflow/tfjs-core.

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.

For info about development, check out DEVELOPMENT.md.

For more information

Thanks BrowserStack for providing testing support.