MCPcopy
hub / github.com/tensorflow/tfjs / removeDataId

Method removeDataId

tfjs-core/src/engine.ts:910–916  ·  view source on GitHub ↗
(dataId: DataId, backend: KernelBackend)

Source from the content-addressed store, hash-verified

908 }
909
910 removeDataId(dataId: DataId, backend: KernelBackend) {
911 if (this.state.tensorInfo.has(dataId) &&
912 this.state.tensorInfo.get(dataId).backend === backend) {
913 this.state.tensorInfo.delete(dataId);
914 this.state.numDataBuffers--;
915 }
916 }
917 disposeTensor(a: Tensor): void {
918 if (!this.state.tensorInfo.has(a.dataId)) {
919 return;

Callers 2

disposeTensorMethod · 0.95
readMethod · 0.80

Calls 3

hasMethod · 0.80
deleteMethod · 0.80
getMethod · 0.45

Tested by

no test coverage detected