MCPcopy Create free account
hub / github.com/tensorflow/tfjs-examples / saveModelLocally

Function saveModelLocally

iris-fitDataset/loader.js:55–57  ·  view source on GitHub ↗
(model)

Source from the content-addressed store, hash-verified

53const LOCAL_MODEL_URL = 'indexeddb://tfjs-iris-demo-model/v1';
54
55export async function saveModelLocally(model) {
56 const saveResult = await model.save(LOCAL_MODEL_URL);
57}
58
59export async function loadModelLocally() {
60 return await tf.loadLayersModel(LOCAL_MODEL_URL);

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected