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

Method decRef

tfjs-backend-cpu/src/backend_cpu.ts:112–117  ·  view source on GitHub ↗

Decrease refCount of a `TensorData`.

(dataId: DataId)

Source from the content-addressed store, hash-verified

110
111 /** Decrease refCount of a `TensorData`. */
112 decRef(dataId: DataId): void {
113 if (this.data.has(dataId)) {
114 const tensorData = this.data.get(dataId);
115 tensorData.refCount--;
116 }
117 }
118
119 override move(
120 dataId: DataId, values: backend_util.BackendValues, shape: number[],

Callers

nothing calls this directly

Calls 2

hasMethod · 0.80
getMethod · 0.45

Tested by

no test coverage detected