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

Method refCount

tfjs-backend-webgpu/src/backend_webgpu.ts:244–250  ·  view source on GitHub ↗

Return refCount of a `TensorData`.

(dataId: DataId)

Source from the content-addressed store, hash-verified

242
243 /** Return refCount of a `TensorData`. */
244 override refCount(dataId: DataId): number {
245 if (this.tensorMap.has(dataId)) {
246 const tensorData = this.tensorMap.get(dataId);
247 return tensorData.refCount;
248 }
249 return 0;
250 }
251
252 /** Increase refCount of a `TensorData`. */
253 override incRef(dataId: DataId): void {

Callers

nothing calls this directly

Calls 2

hasMethod · 0.80
getMethod · 0.45

Tested by

no test coverage detected