Move input to device. Does not copy if same device.
Adapted from sigpy.
sigpy
input (array) – Input.
device (int or Device or cupy.Device) – Output device.
Output array placed in device.
array