sigpy.to_device

sigpy.to_device(input, device=<CPU Device>)[source]

Move input to device. Does not copy if same device.

Parameters:
  • input (array) – Input.
  • device (int or Device or cupy.Device) – Output device.
Returns:

Output array placed in device.

Return type:

array