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

Method constructor

tfjs-inference/src/file_handler.ts:36–38  ·  view source on GitHub ↗

* Constructor of the FileHandler. * @param path A single path pointing to the JSON file (usually named * `model.json`) is expected. The JSON file is expected to contain * `modelTopology` and/or `weightsManifest`. If `weightsManifest` exists, * the values of the weights will b

(path: string)

Source from the content-addressed store, hash-verified

34 * to the directory of `model.json`) as contained in `weightManifest`.
35 */
36 constructor(path: string) {
37 this.path = resolve(path);
38 }
39
40 /**
41 * Load a tfjs model.

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected