license import { Greater , KernelConfig , KernelFunc } from '@tensorflow/tfjs-core' ; import { binaryKernelFunc } from '../kernel_utils/kernel_funcs_utils' ; import { greaterImplCPU } from '../kernel_utils/shared' ; const GREATER = `return float(a > b);` ; const GREATER_PACKED = `
  return vec4(greaterThan(a, b));
` ; export const greater = binaryKernelFunc ( { opSnippet : GREATER , packedOpSnippet : GREATER_PACKED , cpuKernelImpl : greaterImplCPU , dtype : 'bool' } ) ; export const greaterConfig = { kernelName : Greater , backendName : 'webgl' , kernelFunc : greater as { } as KernelFunc } ;