license import { KernelConfig , KernelFunc , LogicalAnd } from '@tensorflow/tfjs-core' ; import { binaryKernelFunc } from '../kernel_utils/kernel_funcs_utils' ; const LOGICAL_AND = `return float(a >= 1.0 && b >= 1.0);` ; const LOGICAL_AND_PACKED = `
  return vec4(
    vec4(greaterThanEqual(a, vec4(1.0))) *
    vec4(greaterThanEqual(b, vec4(1.0))));
` ; export const logicalAnd = binaryKernelFunc ( { opSnippet : LOGICAL_AND , packedOpSnippet : LOGICAL_AND_PACKED , dtype : 'bool' } ) ; export const logicalAndConfig = { kernelName : LogicalAnd , backendName : 'webgl' , kernelFunc : logicalAnd as { } as KernelFunc } ;