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

Method move

tfjs-node/src/nodejs_kernel_backend.ts:269–274  ·  view source on GitHub ↗
(
      dataId: DataId, values: backend_util.BackendValues, shape: number[],
      dtype: DataType, refCount: number)

Source from the content-addressed store, hash-verified

267 }
268
269 move(
270 dataId: DataId, values: backend_util.BackendValues, shape: number[],
271 dtype: DataType, refCount: number): void {
272 this.tensorMap.set(
273 dataId, {shape, dtype: getTFDType(dtype), values, id: -1, refCount});
274 }
275
276 write(values: backend_util.BackendValues, shape: number[], dtype: DataType):
277 DataId {

Callers 1

writeMethod · 0.95

Calls 2

getTFDTypeFunction · 0.85
setMethod · 0.45

Tested by

no test coverage detected