mindspore/docs/api/api_python/ops/mindspore.ops.func_aminmax.rst

17 lines
555 B
ReStructuredText
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

mindspore.ops.aminmax
======================
.. py:function:: mindspore.ops.aminmax(input, *, axis=0, keepdims=False)
返回tensor在指定轴上的最小值和最大值。
参数:
- **input** (Tensor) - 输入tensor。
关键字参数:
- **axis** (int可选) - 指定计算的轴。如果为 ``None`` ,计算 `input` 中的所有元素。默认 ``0``
- **keepdims** (bool可选) - 输出tensor是否保留维度。默认 ``False``
返回:
两个tensor组成的tuple(min, max)。