license import { KernelConfig , KernelFunc , Real , RealInputs , TensorInfo } from '@tensorflow/tfjs-core' ; import { MathBackendCPU } from '../backend_cpu' ; export function real ( args ) { const { inputs , backend } = args ; const { input } = inputs ; const real = backend . data . get ( input . dataId ) . complexTensorInfos . real ; const realVal = backend . data . get ( real . dataId ) . values ; return backend . makeTensorInfo ( real . shape , real . dtype , realVal ) ; } export const realConfig = { kernelName : Real , backendName : 'cpu' , kernelFunc : real as { } as KernelFunc } ;