Returns the indices of the minimum values along an axis.
axis
The result has the same shape as input with the dimension along axis removed.
input
const x = tf.tensor1d([1, 2, 3]);x.argMin().print(); // or tf.argMin(x) Copy
const x = tf.tensor1d([1, 2, 3]);x.argMin().print(); // or tf.argMin(x)
const x = tf.tensor2d([1, 2, 4, 3], [2, 2]);const axis = 1;x.argMin(axis).print(); // or tf.argMin(x, axis) Copy
const x = tf.tensor2d([1, 2, 4, 3], [2, 2]);const axis = 1;x.argMin(axis).print(); // or tf.argMin(x, axis)
The input tensor.
Optional
The dimension to reduce. Defaults to 0 (outer-most dimension).
Generated using TypeDoc
Returns the indices of the minimum values along an
axis
.The result has the same shape as
input
with the dimension alongaxis
removed.