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