license import { FloorDiv , KernelConfig } from '@tensorflow/tfjs-core' ; import { createSimpleBinaryKernelImpl } from '../utils/binary_impl' ; import { binaryKernelFunc } from '../utils/binary_utils' ; export const floorDivImpl = createSimpleBinaryKernelImpl ( ( a , b ) => Math . floor ( a / b ) ) ; export const floorDiv = binaryKernelFunc ( FloorDiv , floorDivImpl , null , 'int32' ) ; export const floorDivConfig = { kernelName : FloorDiv , backendName : 'cpu' , kernelFunc : floorDiv } ;