license import { Floor , KernelConfig } from '@tensorflow/tfjs-core' ; import { createSimpleUnaryImpl } from '../utils/unary_impl' ; import { unaryKernelFuncFromImpl } from '../utils/unary_utils' ; export const floorImpl = createSimpleUnaryImpl ( ( xi ) => Math . floor ( xi ) ) ; export const floor = unaryKernelFuncFromImpl ( Floor , floorImpl ) ; export const floorConfig = { kernelName : Floor , backendName : 'cpu' , kernelFunc : floor , } ;