summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorArne Juul <arnej@verizonmedia.com>2020-10-02 16:36:32 +0000
committerArne Juul <arnej@verizonmedia.com>2020-10-02 16:36:32 +0000
commit3f67ec9476d43cbe5c3f54cebe658aa8d6295e15 (patch)
treef7da5d5e12233245b1535077b2dd9ae63ee41c28
parentafc1dcab84c69ca278ea1868dd6707bec2d166bb (diff)
lost a reserve() call in last refactoring
-rw-r--r--eval/src/vespa/eval/tensor/serialization/sparse_binary_format.cpp1
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();
}