-
Notifications
You must be signed in to change notification settings - Fork 2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update the README to reflect public opening & update build scripts fo…
…r consistency with other repos (uses yalc) (#76)
- Loading branch information
Nikhil Thorat
authored
Apr 23, 2018
1 parent
8bc10d7
commit 8ae4c23
Showing
9 changed files
with
1,095 additions
and
37 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,3 +3,6 @@ dist/ | |
deps/ | ||
node_modules/ | ||
yarn-error.log | ||
yalc.lock | ||
.yalc/ | ||
demo/train-* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
.vscode/ | ||
demo/ | ||
scripts/ | ||
src/ | ||
node_modules/ | ||
*.tgz | ||
.travis.yml | ||
.npmignore | ||
CONTRIBUTING.md | ||
tslint.json | ||
yarn.lock | ||
yalc.lock | ||
.yalc/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,25 +1,53 @@ | ||
# Node.js Support for TensorFlow.js | ||
This package provides TensorFlow as a backend to TensorFlow.js. | ||
# TensorFlow backend for TensorFlow.js via Node.js | ||
|
||
## Supported Platforms | ||
**This repo is under active development and is not production-ready. We will be | ||
actively developing this in open source. Stay tuned for an official release.** | ||
|
||
- Mac OS | ||
- Linux | ||
- Windows (not yet - TODO) | ||
Currently, we only support developing TensorFlow.js code directly inside of this | ||
repository, however we plan on publishing on NPM soon. | ||
|
||
## Development | ||
## Trying it out | ||
|
||
- Prep: | ||
``` | ||
$ yarn | ||
``` | ||
```sh | ||
# Download and install JS depencies, including libtensorflow 1.8. | ||
yarn | ||
|
||
- Run unit tests: | ||
# Publish the NPM locally for usage with other packages. | ||
yarn publish-local | ||
``` | ||
$ yarn test | ||
|
||
See the `demo` directory that trains MNIST using TensorFlow.js with the | ||
TensorFlow C backend. | ||
|
||
```sh | ||
cd demo/ | ||
yarn | ||
|
||
# Link the tfjs-node NPM we published above. | ||
yarn link-local tfjs-node | ||
|
||
# Run the training script. See demo/package.json for this script. | ||
yarn mnist | ||
``` | ||
|
||
- Run MNIST demo: | ||
The important line to note is at the top of `mnist.ts`, which sets the backend to | ||
TensorFlow. | ||
|
||
```js | ||
bindTensorFlowBackend(); | ||
``` | ||
$ yarn && yarn build && cd demo && yarn && yarn mnist | ||
|
||
|
||
### Optional: Build libtensorflow From TensorFlow source | ||
|
||
This requires installing bazel first. | ||
|
||
```sh | ||
bazel build //tensorflow/tools/lib_package:libtensorflow | ||
``` | ||
|
||
## Supported Platforms | ||
|
||
- Mac OS | ||
- Linux | ||
- ***Windows coming soon*** |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.