to_gpu(array, device=None, stream=None)¶
Copies the given CPU array to the specified device.
Array or arrays on GPU.
If some of the arrays are already on GPU, then this function just returns those arrays without performing any copy.
If input arrays include None, it is returned as None as is.