license import { EluGrad , EluGradInputs , KernelConfig } from '@tensorflow/tfjs' ; import { createTensorsTypeOpAttr , NodeJSKernelBackend } from '../nodejs_kernel_backend' ; export const eluGradConfig = { kernelName : EluGrad , backendName : 'tensorflow' , kernelFunc : ( args ) => { const { dy , y } = args . inputs as EluGradInputs ; const backend = args . backend as NodeJSKernelBackend ; const opAttrs = [ createTensorsTypeOpAttr ( 'T' , y . dtype ) ] ; return backend . executeSingleOutput ( EluGrad , opAttrs , [ dy , y ] ) ; } } ;