MCPcopy Index your code
hub / github.com/tensorflow/tfjs-examples / checkStoredModelStatus

Method checkStoredModelStatus

cart-pole/index.js:296–299  ·  view source on GitHub ↗

* Check the status of locally saved model. * * @returns If the locally saved model exists, the model info as a JSON * object. Else, `undefined`.

()

Source from the content-addressed store, hash-verified

294 * object. Else, `undefined`.
295 */
296 static async checkStoredModelStatus() {
297 const modelsInfo = await tf.io.listModels();
298 return modelsInfo[MODEL_SAVE_PATH_];
299 }
300
301 /**
302 * Remove the locally saved model from IndexedDB.

Callers 2

updateUIControlStateFunction · 0.45
setUpUIFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected