license import { KernelConfig , Rsqrt } from '@tensorflow/tfjs-core' ; import { createSimpleUnaryImpl } from '../utils/unary_impl' ; import { unaryKernelFuncFromImpl } from '../utils/unary_utils' ; export const rsqrtImpl = createSimpleUnaryImpl ( ( xi ) => 1 / Math . sqrt ( xi ) ) ; export const rsqrt = unaryKernelFuncFromImpl ( Rsqrt , rsqrtImpl ) ; export const rsqrtConfig = { kernelName : Rsqrt , backendName : 'cpu' , kernelFunc : rsqrt , } ;