license import { Cos , KernelConfig } from '@tensorflow/tfjs-core' ; import { CHECK_NAN_SNIPPET_UNARY , unaryKernelFunc } from '../kernel_utils/kernel_funcs_utils' ; const COS = CHECK_NAN_SNIPPET_UNARY + `
  return cos(x);
` ; export const cos = unaryKernelFunc ( { opSnippet : COS } ) ; export const cosConfig = { kernelName : Cos , backendName : 'webgl' , kernelFunc : cos , } ;