chainerx.array¶
-
chainerx.
array
(object, dtype=None, copy=True, device=None)¶ Creates an array.
- Parameters
object – A
ndarray
object or any other object that can be passed tonumpy.array()
.dtype – Data type. If omitted, it’s inferred from the input.
copy (bool) – If
True
, the object is always copied. Otherwise, a copy will only be made if it is needed to satisfy any of the other requirements (dtype, device, etc.).device (Device) – Device on which the array is allocated. If omitted, the default device is chosen.
- Returns
New array.
- Return type
Warning
If
device
argument is omitted, the new array is created on the default device, not the device of the input array.See also