license import { KernelConfig , KernelFunc , Real , RealInputs , TensorInfo } from '@tensorflow/tfjs-core' ; import { MathBackendWebGL } from '../backend_webgl' ; import { identity } from './Identity' ; export function real ( args ) { const { inputs , backend } = args ; const { input } = inputs ; const inputData = backend . texData . get ( input . dataId ) ; return identity ( { inputs : { x : inputData . complexTensorInfos . real } , backend } ) ; } export const realConfig = { kernelName : Real , backendName : 'webgl' , kernelFunc : real as { } as KernelFunc } ;