- iarray.empty(shape: Union[int, Tuple[int, ...]], *, device: Optional[Literal['cpu']] = None, cfg: Optional[Config] = None, **kwargs) IArray #
Return an uninitialized array.
An empty array has no data and needs to be filled via a write iterator.
shape¶ (int, tuple) – The shape of the array to be created.
device¶ (Device) – The device on which to place the created array. The only supported value is “cpu”.
The new array.
- Return type