Skip to content

Commit

Permalink
add raspberry-pi doc (#2444)
Browse files Browse the repository at this point in the history
DOC
  • Loading branch information
Kangyi Zhang authored Nov 27, 2019
1 parent b2442e9 commit 9cf78cf
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions tfjs-node/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,14 @@ After that operation completes, re-run `yarn add` or `npm install` for the `@ten

You only need to include `@tensorflow/tfjs-node` or `@tensorflow/tfjs-node-gpu` in the package.json file, since those packages ship with `@tensorflow/tfjs` already.

#### Rebuild the package on Raspberry Pi

To use this package on Raspberry Pi, you need to rebuild the node native addon with the following command after you installed the package:

```sh
$ npm rebuild @tensorflow/tfjs-node --build-from-source
```

## Using the binding

Before executing any TensorFlow.js code, import the node package:
Expand Down

0 comments on commit 9cf78cf

Please sign in to comment.