Tensor Flow - Loading
Overview
The tensor-flow library is an external library that is not pre-loaded on the davinci platform.
Loading the Library
You can load the library by calling $src and passing the URL of the library. The library can usually be loaded from the cdn below. When it
is loaded, it creates the tf object which is used to run the tensor flow algorithms.
await $src('https://cdn.jsdelivr.net/npm/@tensorflow/tfjs@2.0.0/dist/tf.min.js');
var linearModel = tf.sequential();
Try it!