diff options
author | Arne H Juul <arnej27959@users.noreply.github.com> | 2020-10-02 18:45:00 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-10-02 18:45:00 +0200 |
commit | 58c15afd3ea77235e2ea26f4baa2e171574dd3b6 (patch) | |
tree | f7da5d5e12233245b1535077b2dd9ae63ee41c28 | |
parent | afc1dcab84c69ca278ea1868dd6707bec2d166bb (diff) | |
parent | 3f67ec9476d43cbe5c3f54cebe658aa8d6295e15 (diff) |
Merge pull request #14689 from vespa-engine/arnej/restore-lost-reserve
lost a reserve() call in last refactoring
-rw-r--r-- | eval/src/vespa/eval/tensor/serialization/sparse_binary_format.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/eval/src/vespa/eval/tensor/serialization/sparse_binary_format.cpp b/eval/src/vespa/eval/tensor/serialization/sparse_binary_format.cpp index a0b691872a0..f6ceb148a44 100644 --- a/eval/src/vespa/eval/tensor/serialization/sparse_binary_format.cpp +++ b/eval/src/vespa/eval/tensor/serialization/sparse_binary_format.cpp @@ -138,6 +138,7 @@ struct BuildSparseCells { size_t cellsSize) { DirectSparseTensorBuilder<CT> builder(std::move(type)); + builder.reserve(cellsSize); decodeCells<CT>(stream, dimensionsSize, cellsSize, builder); return builder.build(); } |