/* * Copyright (c) Meta Platforms, Inc. and affiliates. * All rights reserved. * * This source code is licensed under the BSD-style license found in the * LICENSE file in the root directory of this source tree. */ #include #include namespace torch { namespace executor { namespace native { namespace { double reciprocal(double x) { return 1.0 / x; } } // namespace Tensor& reciprocal_out(KernelRuntimeContext& ctx, const Tensor& in, Tensor& out) { return internal::unary_ufunc_realhbbf16_to_floathbf16( reciprocal, ctx, in, out); } } // namespace native } // namespace executor } // namespace torch