ivy.argmin(x: ivy.NativeArray, axis: int = 0, f: Optional[ivy.Framework] = None) → ivy.NativeArray[source]

Returns the index with the smallest value across axes of an array.

  • x (array) – Input array containing elements to argmin.

  • axis (int, optional) – Axis to perform the argmin, default is 0.

  • f (ml_framework, optional) – Machine learning framework. Inferred from inputs if None.


Tensor containing the indices of the minimum values across the specified axis.

Supported Frameworks:

empty jax_logo empty tf_logo empty pytorch_logo empty mxnet_logo empty numpy_logo empty