megengine.functional.argmin¶
- argmin(inp, axis=None, keepdims=False)[source]¶
Returns the indices of the minimum values along given axis. If axis is a list of dimensions, reduce over all of them.
- Parameters
- Return type
- Returns
output tensor.
Examples
>>> import numpy as np >>> x = Tensor(np.arange(1, 7, dtype=np.int32).reshape(2,3)) >>> F.argmin(x) Tensor(0, dtype=int32, device=xpux:0)