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

Method refCount

tfjs-backend-webgl/src/backend_webgl.ts:230–236  ·  view source on GitHub ↗

Return refCount of a `TensorData`.

(dataId: DataId)

Source from the content-addressed store, hash-verified

228
229 /** Return refCount of a `TensorData`. */
230 override refCount(dataId: DataId): number {
231 if (this.texData.has(dataId)) {
232 const tensorData = this.texData.get(dataId);
233 return tensorData.refCount;
234 }
235 return 0;
236 }
237
238 /** Increase refCount of a `TextureData`. */
239 override incRef(dataId: DataId): void {

Callers

nothing calls this directly

Calls 2

hasMethod · 0.80
getMethod · 0.45

Tested by

no test coverage detected