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

Method numDataIds

tfjs-core/src/backends/backend.ts:42–42  ·  view source on GitHub ↗

Returns number of data ids currently in the storage.

()

Source from the content-addressed store, hash-verified

40 memory(): {unreliable: boolean;}; // Backend-specific information.
41 /** Returns number of data ids currently in the storage. */
42 numDataIds(): number;
43 refCount(dataId: DataId): number;
44}
45

Callers 15

numDataIdsMethod · 0.65
STFT_test.tsFile · 0.65
Reshape_test.tsFile · 0.65
Complex_test.tsFile · 0.65
numDataIdsMethod · 0.65
checkKernelForMemLeakMethod · 0.65
runKernelFuncMethod · 0.65
reverse_test.tsFile · 0.65

Implementers 6

KernelBackendtfjs-core/src/backends/backend.ts
MathBackendCPUtfjs-backend-cpu/src/backend_cpu.ts
WebGPUBackendtfjs-backend-webgpu/src/backend_webgpu
NodeJSKernelBackendtfjs-node/src/nodejs_kernel_backend.ts
MathBackendWebGLtfjs-backend-webgl/src/backend_webgl.t
BackendWasmtfjs-backend-wasm/src/backend_wasm.ts

Calls

no outgoing calls

Tested by

no test coverage detected