license import { ENGINE } from '../engine' ; import { ArgMin , ArgMinAttrs , ArgMinInputs } from '../kernel_names' ; import { NamedAttrMap } from '../kernel_registry' ; import { Tensor } from '../tensor' ; import { NamedTensorMap } from '../tensor_types' ; import { convertToTensor } from '../tensor_util_env' ; import { TensorLike } from '../types' ; import { op } from './operation' ; param x param axis doc function argMin_ < T extends Tensor > ( x , axis = 0 ) { const $x = convertToTensor ( x , 'x' , 'argMin' ) ; const inputs = { x : $x } ; const attrs = { axis } ; return ENGINE . runKernel ( ArgMin , inputs as { } as NamedTensorMap , attrs as { } as NamedAttrMap ) ; } export const argMin = op ( { argMin_ } ) ;