license import { IsFinite , KernelConfig } from '@tensorflow/tfjs-core' ; import { unaryKernelFunc } from '../kernel_utils/kernel_funcs_utils' ; const IS_FINITE = `return float(!isnan(x) && !isinf(x));` ; export const isFinite = unaryKernelFunc ( { opSnippet : IS_FINITE , dtype : 'bool' } ) ; export const isFiniteConfig = { kernelName : IsFinite , backendName : 'webgl' , kernelFunc : isFinite , } ;