blob: cee38fc1f16565f2dff04cb2a210adf5852fea3d [file] [log] [blame]
//
// Copyright © 2017 Arm Ltd. All rights reserved.
// SPDX-License-Identifier: MIT
//
#include "Rsqrt.hpp"
#include <cmath>
namespace armnn
{
void Rsqrt(const float* in,
float* out,
const TensorInfo& tensorInfo)
{
for (size_t i = 0; i < tensorInfo.GetNumElements(); i++)
{
out[i] = 1.f / sqrtf(in[i]);
}
}
} //namespace armnn