x may be a nested container of arrays or scalars. The resulting structure
is committed to the device.
If device is not specified, this function behaves as identity if the input
is already an Array, otherwise it places the scalar uncommitted on the
default device.
Transfer
xtodevice.xmay be a nested container of arrays or scalars. The resulting structure is committed to the device.If
deviceis not specified, this function behaves as identity if the input is already anArray, otherwise it places the scalar uncommitted on the default device.