sponge.function.reduce_all
- sponge.function.reduce_all(x: Tensor, axis: Union[int, Tuple[int], List[int]] = ())[source]
Reduces a dimension of a tensor by the "logicalAND" of all elements in the dimension, by default. And also can reduce a dimension of x along the axis. See mindspore.ops.ReduceAll for detailed information.
- Parameters
x (Tensor[bool]) – The input tensor. The dtype of the tensor to be reduced is bool. \((N,*)\) where \(*\) means, any number of additional dimensions, its rank should be less than 8.
axis (Union[int, tuple(int), list(int)]) – The dimensions to reduce. Default: (), reduce all dimensions. Only constant value is allowed. Must be in the range [-rank(x), rank(x)).
- Outputs:
Tensor, the dtype is bool.
- Supported Platforms:
Ascend
GPU
CPU