license import { KernelConfig , Sign } from '@tensorflow/tfjs-core' ; import { unaryKernelFunc } from '../kernel_utils/kernel_funcs_utils' ; const SIGN = `
  if (isnan(x)) { return 0.0; }
  return sign(x);
` ; export const sign = unaryKernelFunc ( { opSnippet : SIGN } ) ; export const signConfig = { kernelName : Sign , backendName : 'webgl' , kernelFunc : sign , } ;