aboutsummaryrefslogtreecommitdiffstats
path: root/searchlib/src/vespa/searchlib/tensor/tensor_buffer_store.h
diff options
context:
space:
mode:
authorGeir Storli <geirst@yahooinc.com>2023-02-15 17:15:17 +0100
committerGitHub <noreply@github.com>2023-02-15 17:15:17 +0100
commit6311d48315bf6baced43d8d1a5c2b9308bf543e4 (patch)
treefd06625e60a4b5f530facf6453d548e6d8f2c82a /searchlib/src/vespa/searchlib/tensor/tensor_buffer_store.h
parent994c07cb9470017c4855a0d7523a09a5bdca1d88 (diff)
parent5a66f8e7375bafccf365a1448bd2709fea623335 (diff)
Merge pull request #26054 from vespa-engine/toregge/add-exponential-array-size-growth-to-tensor-buffer-type-mapperv8.127.1v8.126.20
Add exponential array size growth to tensor buffer type mapper.
Diffstat (limited to 'searchlib/src/vespa/searchlib/tensor/tensor_buffer_store.h')
-rw-r--r--searchlib/src/vespa/searchlib/tensor/tensor_buffer_store.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/searchlib/src/vespa/searchlib/tensor/tensor_buffer_store.h b/searchlib/src/vespa/searchlib/tensor/tensor_buffer_store.h
index ce00977c298..f602836bd32 100644
--- a/searchlib/src/vespa/searchlib/tensor/tensor_buffer_store.h
+++ b/searchlib/src/vespa/searchlib/tensor/tensor_buffer_store.h
@@ -44,6 +44,9 @@ public:
auto buf = _array_store.get(ref);
return _ops.get_vectors(buf);
}
+
+ // Used by unit test
+ static constexpr uint32_t get_offset_bits() noexcept { return RefType::offset_bits; }
};
}