(
dataId: DataId, values: BackendValues, shape: number[], dtype: DataType,
refCount: number)
| 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()]); |