Created
May 15, 2018 23:30
-
-
Save SkalskiP/bf2ed5007cd7284ddc18fdb8bb041c6d to your computer and use it in GitHub Desktop.
Loading the model to the application
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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