mindspore/docs/api/api_python/numpy/mindspore.numpy.argmin.rst

19 lines
751 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.numpy.argmin
======================
.. py:function:: mindspore.numpy.argmin(a, axis=None)
返回沿指定轴最小值的索引。
.. note::
不支持NumPy参数 `out` 。 在Ascend上如果存在多个最小值的情况返回的索引可能不一定对应于第一次出现的值。
参数:
- **a** (Union[int, float, bool, list, tuple, Tensor]) - 输入数组。
- **axis** (int, 可选) - 默认情况下,索引进入展平的数组,否则沿指定 `axis` 。 默认值: ``None``
返回:
Tensor原数组中元素的索引的数组。 与移除指定 `axis` 后的入参 `a` 的shape相同。
异常:
- **ValueError** - 如果 `axis` 超出范围。