MLXBackend.full#
- MLXBackend.full(shape, fill_value, dtype=None)[source]#
Returns an array filled with fill_value of specified shape and dtype.
- Parameters:
- shapetuple of ints.
Desired shape for the array.
- dtypetype
Desired data type for the array.
- Returns:
- BackendArray
Byte-aligned array of zeros with specified shape and dtype.