MCPcopy Create free account
hub / github.com/tensorflow/tfjs / getModelKeys

Function getModelKeys

tfjs-react-native/src/async_storage_io.ts:34–41  ·  view source on GitHub ↗
(path: string)

Source from the content-addressed store, hash-verified

32const WEIGHT_DATA_SUFFIX = 'weight_data';
33
34function getModelKeys(path: string): StorageKeys {
35 return {
36 info: [PATH_PREFIX, path, INFO_SUFFIX].join(PATH_SEPARATOR),
37 modelArtifactsWithoutWeights:
38 [PATH_PREFIX, path, MODEL_SUFFIX].join(PATH_SEPARATOR),
39 weightData: [PATH_PREFIX, path, WEIGHT_DATA_SUFFIX].join(PATH_SEPARATOR),
40 };
41}
42/**
43 * Populate ModelArtifactsInfo fields for a model with JSON topology.
44 * @param modelArtifacts

Callers 1

constructorMethod · 0.70

Calls 1

joinMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…