license import { Identity , IdentityInputs , KernelConfig , KernelFunc , TensorInfo } from '@tensorflow/tfjs-core' ; import { MathBackendWebGL } from '../backend_webgl' ; export function identity ( args ) { const { inputs , backend } = args ; const { x } = inputs ; backend . incRef ( x . dataId ) ; return { dataId : x . dataId , shape : x . shape , dtype : x . dtype } ; } export const identityConfig = { kernelName : Identity , backendName : 'webgl' , kernelFunc : identity as { } as KernelFunc } ;