license import { Cosh , KernelConfig } from '@tensorflow/tfjs-core' ; import { unaryKernelFunc } from '../kernel_utils/kernel_funcs_utils' ; const COSH = `
  float e2x = exp(-x);
  return (e2x + 1.0 / e2x) / 2.0;
` ; export const cosh = unaryKernelFunc ( { opSnippet : COSH } ) ; export const coshConfig = { kernelName : Cosh , backendName : 'webgl' , kernelFunc : cosh , } ;