license import { Expm1 , KernelConfig , KernelFunc } from '@tensorflow/tfjs-core' ; import { unaryKernelFunc } from '../kernel_utils/kernel_funcs_utils' ; import { expm1ImplCPU } from '../kernel_utils/shared' ; const EXPM1 = `return exp(x) - 1.0;` ; export const expm1 = unaryKernelFunc ( { opSnippet : EXPM1 , packedOpSnippet : EXPM1 , cpuKernelImpl : expm1ImplCPU } ) ; export const expm1Config = { kernelName : Expm1 , backendName : 'webgl' , kernelFunc : expm1 as { } as KernelFunc } ;