MCPcopy Index your code
hub / github.com/tensorflow/tfjs / incRef

Method incRef

tfjs-core/src/engine.ts:905–908  ·  view source on GitHub ↗
(a: Tensor, backend: KernelBackend)

Source from the content-addressed store, hash-verified

903 // refCount on the backend for the dataId. It can potentially be replaced with
904 // Identity op indead of calling backend directly.
905 incRef(a: Tensor, backend: KernelBackend): void {
906 this.trackTensor(a, backend);
907 this.backend.incRef(a.dataId);
908 }
909
910 removeDataId(dataId: DataId, backend: KernelBackend) {
911 if (this.state.tensorInfo.has(dataId) &&

Callers 1

makeVariableMethod · 0.95

Calls 2

trackTensorMethod · 0.95
incRefMethod · 0.65

Tested by

no test coverage detected