- ivy.empty(shape, *, dtype=None, device=None, out=None)#
Return a new array of given shape and type, filled with zeros.
NativeShape]) – output array shape.
None) – output array data type. If dtype is None, the output array data type must be the default floating-point data type. Default:
None) – device on which to place the created array. Default:
None) – optional output array, for writing the result to. It must have a shape that the inputs broadcast to.
- Return type:
ret – an uninitialized array having a specified shape
Both the description and the type hints above assumes an array input for simplicity, but this function is nestable, and therefore also accepts
ivy.Containerinstances in place of any of the arguments.