license import { Asin , KernelConfig } from '@tensorflow/tfjs-core' ; import { unaryKernelFunc } from '../kernel_utils/kernel_funcs_utils' ; import { CHECK_NAN_SNIPPET } from '../unaryop_gpu' ; const ASIN = CHECK_NAN_SNIPPET + `
  if (abs(x) > 1.) {
    return NAN;
  }
  return asin(x);
` ; export const asin = unaryKernelFunc ( { opSnippet : ASIN } ) ; export const asinConfig = { kernelName : Asin , backendName : 'webgl' , kernelFunc : asin , } ;