diff --git a/include/aidge/utils/TensorUtils.hpp b/include/aidge/utils/TensorUtils.hpp index 5ba1f8ae589b8e8628a12036e34f55f40a300eef..794abf7632766fb55d8a9a96c0ffa0c046d9de62 100644 --- a/include/aidge/utils/TensorUtils.hpp +++ b/include/aidge/utils/TensorUtils.hpp @@ -77,7 +77,7 @@ bool approxEq(const Tensor& t1, const Tensor& t2, float relative = 1e-5f, float const float threshold = absolute + (relative * static_cast<float>(std::abs(val2))); if (diff > threshold) { - Log::error("Tensor values differ at index {}: {} vs {} (diff: {}, threshold: {})\n" + Log::notice("Tensor values differ at index {}: {} vs {} (diff: {}, threshold: {})\n" "Tensor 1:\n{}\nTensor 2:\n{}", i, val1, val2, diff, threshold, t1, t2); return false; diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt deleted file mode 100644 index e69de29bb2d1d6434b8b29ae775ad8c2e48c5391..0000000000000000000000000000000000000000 diff --git a/src/utils/Log.cpp b/src/utils/Log.cpp index 45f03a7ae32a8727a67924ae5d28643aeb63e3c6..3890b991a2138fe9d1191ffbdd8d8fc2143b38fb 100644 --- a/src/utils/Log.cpp +++ b/src/utils/Log.cpp @@ -140,10 +140,7 @@ void Log::log(Level level, const std::string& msg) { wrappedLines.push_back(text.substr(start, lineEnd - start)); // Move to the next segment, skipping spaces - start = lineEnd; - while (start < text.size() && (text[start] == ' ' || text[start] == '\n')) { - ++start; - } + start = ++lineEnd; } return wrappedLines;