license import { ENGINE } from '../engine' ; import { All , AllAttrs , AllInputs } 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 param keepDims doc function all_ < T extends Tensor > ( x , axis = null , keepDims = false ) { const $x = convertToTensor ( x , 'x' , 'all' , 'bool' ) ; const inputs = { x : $x } ; const attrs = { axis , keepDims } ; return ENGINE . runKernel ( All , inputs as { } as NamedTensorMap , attrs as { } as NamedAttrMap ) ; } export const all = op ( { all_ } ) ;