Windows的nodejs下使用tf

重要环境

首先要在管理员控制台下安装:

npm install --global --production windows-build-tools

然后必须在项目目录下安装:

npm i --save @tensorflow/tfjs
npm i --save @tensorflow/tfjs-node

两个东西,其中第一个直接拿来使用tf,第二个只需要require一下即可。

详细的Mnist Demo:

https://github.com/SteveWooo/tf_learning

你可能感兴趣的:(Windows的nodejs下使用tf)