license import { KernelConfig , Sub } from '@tensorflow/tfjs-core' ; import { binaryKernelFunc } from '../kernel_utils/kernel_funcs_utils' ; import { subImplCPU as cpuSub } from '../kernel_utils/shared' ; const SUB = 'return a - b;' ; export const sub = binaryKernelFunc ( { opSnippet : SUB , packedOpSnippet : SUB , supportsComplex : true , cpuKernelImpl : cpuSub } ) ; export const subConfig = { kernelName : Sub , backendName : 'webgl' , kernelFunc : sub } ;