Steps to Install TenserFlow.js
There are two methods by which we can install and use TenserFlow.js.
Method 1: Using CDN Link
We can use CDN link to run Tensorflow.js code without installing it. Add the following CDN link into the script tag to the head section of the HTML file.
<script src=”https://cdn.jsdelivr.net/npm/@tensorflow/tfjs@2.0.0/dist/tf.min.js”></script>
Method 2: Installation of TensorFlow.js using npm Package Manager
We can install it using npm. Before installing TensorFlow.js through npm, first, make sure you have installed Node.js and npm.
npm install @tensorflow/tfjs
Contact Us