to_host
Applicable Products
All processors
Function Usage
Moves the current tensor from the device to the host.
Prototype
1 | to_host()->Tensor |
Parameters
None
Returns
(Tensor) Returns itself to support chain calls.
Restrictions
- If the current tensor is not the device memory, ValueError is thrown.
- If the movement fails, RuntimeError is thrown.
Parent topic: Tensor