license import { KernelConfig , KernelFunc , LogicalOr } from '@tensorflow/tfjs-core' ; import { binaryKernelFunc } from '../kernel_utils/kernel_funcs_utils' ; const LOGICAL_OR = `return float(a >= 1.0 || b >= 1.0);` ; const LOGICAL_OR_PACKED = `
  return min(
    vec4(greaterThanEqual(a, vec4(1.0))) +
    vec4(greaterThanEqual(b, vec4(1.0))),
    vec4(1.0));
` ; export const logicalOr = binaryKernelFunc ( { opSnippet : LOGICAL_OR , packedOpSnippet : LOGICAL_OR_PACKED , dtype : 'bool' } ) ; export const logicalOrConfig = { kernelName : LogicalOr , backendName : 'webgl' , kernelFunc : logicalOr as { } as KernelFunc } ;