license import { KernelConfig , KernelFunc , Sqrt } from '@tensorflow/tfjs-core' ; import { unaryKernelFunc } from '../kernel_utils/kernel_funcs_utils' ; import { sqrtImplCPU } from '../kernel_utils/shared' ; const SQRT = `return sqrt(x);` ; export const sqrt = unaryKernelFunc ( { opSnippet : SQRT , packedOpSnippet : SQRT , cpuKernelImpl : sqrtImplCPU } ) ; export const sqrtConfig = { kernelName : Sqrt , backendName : 'webgl' , kernelFunc : sqrt as { } as KernelFunc } ;