Skip to content

Instantly share code, notes, and snippets.

@SkalskiP
Created May 15, 2018 23:30
Show Gist options
  • Save SkalskiP/bf2ed5007cd7284ddc18fdb8bb041c6d to your computer and use it in GitHub Desktop.
Save SkalskiP/bf2ed5007cd7284ddc18fdb8bb041c6d to your computer and use it in GitHub Desktop.
Loading the model to the application
import * as tf from '@tensorflow/tfjs';
// Definition of the component supporting the model
// ...
protected async loadModel() {
this.model = await tf.loadModel(AppSettings.mnistModelUrl);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment