fn
empty_extreme
::mlx::core::array empty_extreme(const ::mlx::core::array & x, const int & axes, bool keepdims, int dtype)MLX refuses max, min, argmax and argmin of an empty array — "Cannot max reduce zero size array" — even along axes that are not empty, where the answer is as empty as the input: the max over channels of a batch of zero images. The sum has the same result shape and holds no values, so it stands in. (A zero-length reduced axis has no answer at all; the op refuses that before it reaches a backend.)