license import { KernelConfig , Relu6 } from '@tensorflow/tfjs-core' ; import { unaryKernelFunc } from '../utils/unary_utils' ; export const relu6 = unaryKernelFunc ( Relu6 , ( xi ) => Math . min ( Math . max ( 0 , xi ) , 6 ) ) ; export const relu6Config = { kernelName : Relu6 , backendName : 'cpu' , kernelFunc : relu6 , } ;