license import { Identity , IdentityInputs , KernelConfig } from '@tensorflow/tfjs' ; import { NodeJSKernelBackend } from '../nodejs_kernel_backend' ; export const identityConfig = { kernelName : Identity , backendName : 'tensorflow' , kernelFunc : ( args ) => { const { x } = args . inputs as IdentityInputs ; ( args . backend as NodeJSKernelBackend ) . incRef ( x . dataId ) ; return { dataId : x . dataId , shape : x . shape , dtype : x . dtype } ; } } ;