MCPcopy Index your code
hub / github.com/tensorflow/tfjs / readToGPU

Method readToGPU

tfjs-core/src/engine.ts:1229–1233  ·  view source on GitHub ↗
(dataId: DataId, options?: DataToGPUOptions)

Source from the content-addressed store, hash-verified

1227 }
1228
1229 readToGPU(dataId: DataId, options?: DataToGPUOptions): GPUData {
1230 // Route the read to the correct backend.
1231 const info = this.state.tensorInfo.get(dataId);
1232 return info.backend.readToGPU(dataId, options);
1233 }
1234
1235 async time(query: () => void): Promise<TimingInfo> {
1236 const start = now();

Callers

nothing calls this directly

Calls 2

readToGPUMethod · 0.65
getMethod · 0.45

Tested by

no test coverage detected