2019年8月18日日曜日

How to run tfjs-node on arm64 linux.

This is how to run tensorflow.js for node.js on arm64 linux (termux arch linux).

1. Do node-pre-gyp on arm64 linux.

> npm install @tensowflow/tfjs-node
> cd node_modules/\@tensorflow/tfjs-node
> npx node-pre-gyp -v rebuild

2. Use arm64 libtensorflow.so.
You have to build it your self.

> cd /usr/local/lib
> ln -s libtensorflow.so libtensorflow.so.1

0 件のコメント:

コメントを投稿