license import { KernelConfig , LessEqual } from '@tensorflow/tfjs-core' ; import { createSimpleBinaryKernelImpl } from '../utils/binary_impl' ; import { binaryKernelFunc } from '../utils/binary_utils' ; export const lessEqualImpl = createSimpleBinaryKernelImpl ( ( a , b ) => ( a <= b ) ? 1 : 0 ) ; export const lessEqual = binaryKernelFunc ( LessEqual , lessEqualImpl , null , 'bool' ) ; export const lessEqualConfig = { kernelName : LessEqual , backendName : 'cpu' , kernelFunc : lessEqual } ;