Move the tensor data onto a given device. Args: device: a swig Device converted from CudaGPU or CppCPU or OpenclGPU
(self, device)
| 281 | return t |
| 282 | |
| 283 | def to_device(self, device): |
| 284 | '''Move the tensor data onto a given device. |
| 285 | |
| 286 | Args: |
| 287 | device: a swig Device converted from CudaGPU or CppCPU or OpenclGPU |
| 288 | ''' |
| 289 | self.data.ToDevice(device) |
| 290 | self.device = device |
| 291 | |
| 292 | def to_host(self): |
| 293 | '''Move the tensor data onto the default host CppCPU device. |
no test coverage detected