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