license import { Imag , ImagInputs , KernelConfig } from '@tensorflow/tfjs' ; import { NodeJSKernelBackend } from '../nodejs_kernel_backend' ; export const imagConfig = { kernelName : Imag , backendName : 'tensorflow' , kernelFunc : ( args ) => { const { input } = args . inputs as ImagInputs ; const backend = args . backend as NodeJSKernelBackend ; const opAttrs = [ { name : 'T' , type : backend . binding . TF_ATTR_TYPE , value : backend . binding . TF_COMPLEX64 } , { name : 'Tout' , type : backend . binding . TF_ATTR_TYPE , value : backend . binding . TF_FLOAT } ] ; const inputs = [ input ] ; return backend . executeSingleOutput ( Imag , opAttrs , inputs ) ; } } ;