Merge pull request #26004 from ericmariasis:eric-mariasis-issue-26000

got rid of std prefix
pull/26019/head
Alexander Smorkalov 6 months ago committed by GitHub
commit 67d0338c9c
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
  1. 6
      modules/dnn/src/layers/elementwise_layers.cpp

@ -1738,10 +1738,10 @@ struct RoundFunctor : public BaseDefaultFunctor<RoundFunctor>
inline float calculate(float x) const
{
// Rounds to even numbers in halfway cases, so 2.5 -> 2, -2.5 -> -2
int old_rounding_direction = std::fegetround();
std::fesetround(FE_TONEAREST);
int old_rounding_direction = fegetround();
fesetround(FE_TONEAREST);
float y = std::nearbyint(x);
std::fesetround(old_rounding_direction);
fesetround(old_rounding_direction);
return y;
}

Loading…
Cancel
Save