license import { Acosh , KernelConfig } from '@tensorflow/tfjs-core' ; import { unaryKernelFunc } from '../kernel_utils/kernel_funcs_utils' ; import { CHECK_NAN_SNIPPET } from '../unaryop_gpu' ; const ACOSH = CHECK_NAN_SNIPPET + `
  if (x < 1.0) return NAN;
return log(x + sqrt(x * x - 1.0));` ; export const acosh = unaryKernelFunc ( { opSnippet : ACOSH } ) ; export const acoshConfig = { kernelName : Acosh , backendName : 'webgl' , kernelFunc : acosh , } ;