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

Method incRef

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

Increase refCount of a `TensorData`.

(dataId: DataId)

Source from the content-addressed store, hash-verified

251
252 /** Increase refCount of a `TensorData`. */
253 override incRef(dataId: DataId): void {
254 const tensorData = this.tensorMap.get(dataId);
255 tensorData.refCount++;
256 }
257
258 /** Decrease refCount of a `TensorData`. */
259 decRef(dataId: DataId): void {

Callers

nothing calls this directly

Calls 1

getMethod · 0.45

Tested by

no test coverage detected