license import { IsNan , KernelConfig } from '@tensorflow/tfjs-core' ; import { unaryKernelFunc } from '../utils/unary_utils' ; export const isNaN = unaryKernelFunc ( IsNan , ( xi ) => Number . isNaN ( xi ) ? 1 : 0 , 'bool' ) ; export const isNaNConfig = { kernelName : IsNan , backendName : 'cpu' , kernelFunc : isNaN , } ;