license import { KernelConfig , KernelFunc , TensorInfo , Tile , TileAttrs , TileInputs } from '@tensorflow/tfjs-core' ; import { MathBackendCPU } from '../backend_cpu' ; import { assertNotComplex } from '../cpu_util' ; import { tileImpl } from './Tile_impl' ; export function tile ( args ) { const { inputs , backend , attrs } = args ; const { x } = inputs ; const { reps } = attrs ; assertNotComplex ( x , 'tile' ) ; const outBuf = tileImpl ( backend . bufferSync ( x ) , reps ) ; return backend . makeTensorInfo ( outBuf . shape , outBuf . dtype , outBuf . values ) ; } export const tileConfig = { kernelName : Tile , backendName : 'cpu' , kernelFunc : tile as { } as KernelFunc } ;