是什么

能干什么

demo

在浏览器安装tfjs

<script src="https://cdn.jsdelivr.net/npm/@tensorflow/tfjs@1.0.0/dist/tf.min.js"></script>

npm i @tensorflow/tfjs

在Node.JS安装tfjs

1
2
3
4
5
6
============================
Hi there.
Looks like you are running TensorFlow.js in Node.js.
To speed things up dramatically, install our node backend, whi
ch binds to TensorFlow C++, by running npm i @tensorflow/tfjs-node, or npm i @tensorflow/tfjs-node-gpu if you have CUDA. Then call require('@tensorflow/tfjs-node'); (-gpu suffix for CUDA) at the start of your program. Visit https://github.com/tensorflow/tfjs-node for more details.
============================