Run Existing models Use TensorFlow.js model converters to run pre-existing TensorFlow models rightin the browser.
Retrain Existing models Retrain pre-existing ML models using sensor data connected to the browser, orother client-side data.
You can import TensorFlow.js directly via yarn or npm:yarn add @tensorflow/tfjs or npm install @tensorflow/tfjs.
Alternatively you can use a script tag. The library will be available asa global variable named tf:
You can also specify which version to load replacing @latestwith a specific version string (e.g. 0.6.0).
About this repo
This repository contains the logic and scripts that combinetwo packages:- TensorFlow.js Core, a flexible low-level API, formerly known as deeplearn.js.- TensorFlow.js Layers, a high-level API which implements functionality similar to Keras.
If you care about bundle size, you can import those packages individually.