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

Method memory

tfjs-backend-webgpu/src/backend_webgpu.ts:216–222  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

214 }
215
216 override memory(): WebGPUMemoryInfo {
217 return {
218 numBytesInGPU: this.bufferManager.numBytesUsed,
219 numBytesAllocatedInGPU: this.bufferManager.numBytesAllocated,
220 unreliable: false
221 } as WebGPUMemoryInfo;
222 }
223
224 private releaseResource(dataId: DataId) {
225 const tensorData = this.tensorMap.get(dataId);

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected