license import { Asinh , KernelConfig } from '@tensorflow/tfjs-core' ; import { unaryKernelFunc } from '../kernel_utils/kernel_funcs_utils' ; import { CHECK_NAN_SNIPPET } from '../unaryop_gpu' ; const ASINH = CHECK_NAN_SNIPPET + `return log(x + sqrt(x * x + 1.0));` ; export const asinh = unaryKernelFunc ( { opSnippet : ASINH } ) ; export const asinhConfig = { kernelName : Asinh , backendName : 'webgl' , kernelFunc : asinh , } ;