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

Function getBinaryCache

tfjs-backend-webgl/src/backend_webgl.ts:78–84  ·  view source on GitHub ↗
(webGLVersion: number)

Source from the content-addressed store, hash-verified

76const binaryCaches: {[webGLVersion: string]: {[key: string]: GPGPUBinary}} = {};
77
78export function getBinaryCache(webGLVersion: number) {
79 if (webGLVersion in binaryCaches) {
80 return binaryCaches[webGLVersion];
81 }
82 binaryCaches[webGLVersion] = {};
83 return binaryCaches[webGLVersion];
84}
85
86// Empirically determined constant used to determine size threshold for handing
87// off execution to the CPU.

Callers 2

constructorMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…