Method MoveToDevice
MoveToDevice(Tensor, ITensorData, ITensorData, bool)
Moves a tensor to a device.
Declaration
void MoveToDevice(Tensor X, ITensorData newBuffer, ITensorData oldBuffer, bool disposeDetachedBufferHint)
Parameters
| Type | Name | Description |
|---|---|---|
| Tensor | X | The tensor to move. |
| ITensorData | newBuffer | The new buffer for the tensor data. |
| ITensorData | oldBuffer | The previous buffer for the tensor data. |
| bool | disposeDetachedBufferHint | Whether the old buffer can be freed up for disposal. |