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

Method decRef

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

Decrease refCount of a `TensorData`.

(dataId: DataId)

Source from the content-addressed store, hash-verified

257
258 /** Decrease refCount of a `TensorData`. */
259 decRef(dataId: DataId): void {
260 if (this.tensorMap.has(dataId)) {
261 const tensorData = this.tensorMap.get(dataId);
262 tensorData.refCount--;
263 }
264 }
265
266 override write(values: BackendValues, shape: number[], dtype: DataType):
267 DataId {

Callers

nothing calls this directly

Calls 2

hasMethod · 0.80
getMethod · 0.45

Tested by

no test coverage detected