chainerx.full_like¶
- chainerx.full_like(a, fill_value, dtype=None, device=None)¶
Returns a full array with same shape and dtype as a given array.
- Parameters
a (ndarray) – Prototype array.
dtype – Data type.
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