license import { ENGINE } from '../engine' ; import { LessEqual , LessEqualInputs } from '../kernel_names' ; import { Tensor } from '../tensor' ; import { NamedTensorMap } from '../tensor_types' ; import { makeTypesMatch } from '../tensor_util' ; import { convertToTensor } from '../tensor_util_env' ; import { TensorLike } from '../types' ; import { assertAndGetBroadcastShape } from './broadcast_util' ; import { op } from './operation' ; param a param b doc function lessEqual_ < T extends Tensor > ( a , b ) { let $a = convertToTensor ( a , 'a' , 'lessEqual' , 'string_or_numeric' ) ; let $b = convertToTensor ( b , 'b' , 'lessEqual' , 'string_or_numeric' ) ; [ $a , $b ] = makeTypesMatch ( $a , $b ) ; assertAndGetBroadcastShape ( $a . shape , $b . shape ) ; const inputs = { a : $a , b : $b } ; return ENGINE . runKernel ( LessEqual , inputs as { } as NamedTensorMap ) ; } export const lessEqual = op ( { lessEqual_ } ) ;