license import { KernelConfig , SquaredDifference } from '@tensorflow/tfjs-core' ; import { binaryKernelFunc } from '../kernel_utils/kernel_funcs_utils' ; const SQUARED_DIFFERENCE = 'return (a - b) * (a - b);' ; export const squaredDifference = binaryKernelFunc ( { opSnippet : SQUARED_DIFFERENCE , packedOpSnippet : SQUARED_DIFFERENCE } ) ; export const squaredDifferenceConfig = { kernelName : SquaredDifference , backendName : 'webgl' , kernelFunc : squaredDifference , } ;