diff --git a/src/data/Tensor.cpp b/src/data/Tensor.cpp index b6aa4f2e50a5a3db8c3965a8e618fcf4f0299fe8..cc304f50330d52f3d8fbaa651872457994b7da1d 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 += "{";