From 10a86f3ea6d2c1c58348fa63a1bf3e5b676482cf Mon Sep 17 00:00:00 2001 From: Maxence Naud <maxence.naud@cea.fr> Date: Mon, 25 Sep 2023 12:13:15 +0000 Subject: [PATCH] Apply 1 suggestion(s) to 1 file(s) --- include/aidge/hook/outputRange.hpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/aidge/hook/outputRange.hpp b/include/aidge/hook/outputRange.hpp index 75462435d..0351664f4 100644 --- a/include/aidge/hook/outputRange.hpp +++ b/include/aidge/hook/outputRange.hpp @@ -43,8 +43,8 @@ public: //find the absolute max value in the tensor, save it to registered outputs for(std::size_t i = 0; i < tensor->size(); ++i) { //std::cout << "call() outputRange hook : casted_tensor[i] = " << casted_tensor[i] << std::endl; - if(abs(casted_tensor[i]) > max_value){ - max_value = abs(casted_tensor[i]); + if(std::abs(casted_tensor[i]) > max_value){ + max_value = std::abs(casted_tensor[i]); } } //std::cout << "call() outputRange hook : max_value = " << max_value << std::endl; -- GitLab