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

Method read

tfjs-core/src/engine.ts:1223–1227  ·  view source on GitHub ↗
(dataId: DataId)

Source from the content-addressed store, hash-verified

1221 return info.backend.readSync(dataId);
1222 }
1223 read(dataId: DataId): Promise<BackendValues> {
1224 // Route the read to the correct backend.
1225 const info = this.state.tensorInfo.get(dataId);
1226 return info.backend.read(dataId);
1227 }
1228
1229 readToGPU(dataId: DataId, options?: DataToGPUOptions): GPUData {
1230 // Route the read to the correct backend.

Callers

nothing calls this directly

Calls 2

readMethod · 0.65
getMethod · 0.45

Tested by

no test coverage detected