From 9cf78cf00259eeb3d642fae0439a1b3fdd84a18a Mon Sep 17 00:00:00 2001 From: Kangyi Zhang Date: Wed, 27 Nov 2019 10:46:06 -0800 Subject: [PATCH] add raspberry-pi doc (#2444) DOC --- tfjs-node/README.md | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/tfjs-node/README.md b/tfjs-node/README.md index 6e9bf87c6fc..f27ccb7628c 100644 --- a/tfjs-node/README.md +++ b/tfjs-node/README.md @@ -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: