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

Method memory

tfjs-backend-webgl/src/backend_webgl.ts:607–614  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

605 })();
606 }
607 override memory(): WebGLMemoryInfo {
608 return {
609 unreliable: false,
610 numBytesInGPU: this.numBytesInGPU,
611 numBytesInGPUAllocated: this.textureManager.numBytesAllocated,
612 numBytesInGPUFree: this.textureManager.numBytesFree
613 } as WebGLMemoryInfo;
614 }
615
616 private startTimer(): WebGLQuery|CPUTimerQuery {
617 if (env().getNumber('WEBGL_DISJOINT_QUERY_TIMER_EXTENSION_RELIABLE') > 0) {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected