chainerx.zeros_like¶
-
chainerx.
zeros_like
(a, device=None)¶ Returns an array of zeros with same shape and dtype as a given array.
- Parameters
a (ndarray) – Prototype array.
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 prototype array.See also