Method transfer
val transfer: ITensorDevice -> ITensor -> ITensor
Transfers a tensor to the specifed device.
Declaration
val transfer: dev:ITensorDevice -> src:ITensor -> ITensor
Parameters
Type | Name | Description |
---|---|---|
ITensorDevice | dev | The target device. |
ITensor | src |
Returns
Type | Description |
---|---|
ITensor | A tensor on the target device. |