Skip to content
Snippets Groups Projects
Commit 52dbd88e authored by Cyril Moineau's avatar Cyril Moineau
Browse files

Fix an error with the last parenthesis when printing Tensor.

parent 5b04c4e7
No related branches found
No related tags found
No related merge requests found
...@@ -180,8 +180,8 @@ std::string Aidge::Tensor::toString() const { ...@@ -180,8 +180,8 @@ std::string Aidge::Tensor::toString() const {
} }
} }
for(int i = static_cast<int>(dim); i > 0; --i) { for(int i = static_cast<int>(dim); i >= 0; --i) {
res += std::string((dim+1)<<1,' ') + "}\n"; res += std::string((i+1)<<1,' ') + "}\n";
} }
} else { } else {
res += "{"; res += "{";
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment