license import { IsInf , KernelConfig } from '@tensorflow/tfjs-core' ; import { unaryKernelFunc } from '../utils/unary_utils' ; export const isInf = unaryKernelFunc ( IsInf , ( xi ) => Math . abs ( xi ) === Infinity ? 1 : 0 , 'bool' ) ; export const isInfConfig = { kernelName : IsInf , backendName : 'cpu' , kernelFunc : isInf , } ;