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

Method incRef

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

Increase refCount of a `TensorData`.

(dataId: DataId)

Source from the content-addressed store, hash-verified

104
105 /** Increase refCount of a `TensorData`. */
106 override incRef(dataId: DataId): void {
107 const tensorData = this.data.get(dataId);
108 tensorData.refCount++;
109 }
110
111 /** Decrease refCount of a `TensorData`. */
112 decRef(dataId: DataId): void {

Callers

nothing calls this directly

Calls 1

getMethod · 0.45

Tested by

no test coverage detected