license import { KernelConfig , Maximum } from '@tensorflow/tfjs-core' ; import { createSimpleBinaryKernelImpl } from '../utils/binary_impl' ; import { binaryKernelFunc } from '../utils/binary_utils' ; export const maximumImpl = createSimpleBinaryKernelImpl ( ( ( aValue , bValue ) => Math . max ( aValue as number , bValue as number ) ) ) ; export const maximum = binaryKernelFunc ( Maximum , maximumImpl ) ; export const maximumConfig = { kernelName : Maximum , backendName : 'cpu' , kernelFunc : maximum } ;