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

Method move

tfjs-backend-webgpu/src/backend_webgpu.ts:278–287  ·  view source on GitHub ↗
(
      dataId: DataId, values: BackendValues, shape: number[], dtype: DataType,
      refCount: number)

Source from the content-addressed store, hash-verified

276 }
277
278 override move(
279 dataId: DataId, values: BackendValues, shape: number[], dtype: DataType,
280 refCount: number): void {
281 if (dtype === 'complex64') {
282 throw new Error(
283 `Cannot write to a complex64 dtype. ` +
284 `Please use tf.complex(real, imag).`);
285 }
286 this.tensorMap.set(dataId, {dtype, shape, values, refCount});
287 }
288
289 submitQueue() {
290 this.queue.submit([this.commandEncoder.finish()]);

Callers

nothing calls this directly

Calls 1

setMethod · 0.45

Tested by

no test coverage detected