license import { Elu , KernelConfig } from '@tensorflow/tfjs-core' ; import { unaryKernelFunc } from '../utils/unary_utils' ; export const elu = unaryKernelFunc ( Elu , ( xi ) => xi >= 0 ? xi : ( Math . exp ( xi ) - 1 ) ) ; export const eluConfig = { kernelName : Elu , backendName : 'cpu' , kernelFunc : elu , } ;