MCPcopy
hub / github.com/tensorflow/tfjs / getAndSaveBinary

Method getAndSaveBinary

tfjs-backend-webgl/src/backend_webgl.ts:1028–1034  ·  view source on GitHub ↗
(key: string, getBinary: () => GPGPUBinary)

Source from the content-addressed store, hash-verified

1026 }
1027
1028 private getAndSaveBinary(key: string, getBinary: () => GPGPUBinary):
1029 GPGPUBinary {
1030 if (!(key in this.binaryCache)) {
1031 this.binaryCache[key] = getBinary();
1032 }
1033 return this.binaryCache[key];
1034 }
1035
1036 getTextureManager(): TextureManager {
1037 return this.textureManager;

Callers 1

runWebGLProgramMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected