* Check the status of locally saved model. * * @returns If the locally saved model exists, the model info as a JSON * object. Else, `undefined`.
()
| 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. |
no outgoing calls
no test coverage detected