From 52dbd88e9e4c9657551d26d516eb735a2f7718c1 Mon Sep 17 00:00:00 2001 From: cmoineau <cyril.moineau@cea.fr> Date: Mon, 22 Apr 2024 07:21:12 +0000 Subject: [PATCH] Fix an error with the last parenthesis when printing Tensor. --- src/data/Tensor.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/data/Tensor.cpp b/src/data/Tensor.cpp index b6aa4f2e5..cc304f503 100644 --- a/src/data/Tensor.cpp +++ b/src/data/Tensor.cpp @@ -180,8 +180,8 @@ std::string Aidge::Tensor::toString() const { } } - for(int i = static_cast<int>(dim); i > 0; --i) { - res += std::string((dim+1)<<1,' ') + "}\n"; + for(int i = static_cast<int>(dim); i >= 0; --i) { + res += std::string((i+1)<<1,' ') + "}\n"; } } else { res += "{"; -- GitLab