Returns the indices of the minimum values along an axis.
Numpy argument out is not supported.
Tensor, array of indices into the array. It has the same shape as a.shape with the dimension along axis removed.
ValueError – if axis is out of range.
- Supported Platforms:
>>> import mindspore.numpy as np >>> a = np.arange(10, 16).reshape(2, 3) >>> print(np.argmin(a)) 0 >>> print(np.argmin(a, axis=0)) [0 0 0] >>> print(np.argmin(a, axis=1)) [0 0]