Skip to content
Snippets Groups Projects

[Fix] memory leak due to "dim" local variable overflow

Merged Maxence Naud requested to merge fix/Tensor/toString into main
1 file
+ 1
1
Compare changes
  • Side-by-side
  • Inline
@@ -473,7 +473,7 @@ class Tensor : public Data,
std::string toString() {
std::string toString() {
if (dims().empty()) { return "{}"; }
std::string res;
std::size_t dim = 0;
Loading