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