summaryrefslogtreecommitdiffstats
path: root/searchlib/src/tests/attribute/tensorattribute/tensorattribute_test.cpp
diff options
context:
space:
mode:
authorGeir Storli <geirst@verizonmedia.com>2020-03-06 15:38:01 +0000
committerGeir Storli <geirst@verizonmedia.com>2020-03-06 15:38:01 +0000
commit6ea5dfbf96ffd57307024387538e16f5a54548c3 (patch)
treed0b431a17ea779963fe1427edada7a8b9473f9f2 /searchlib/src/tests/attribute/tensorattribute/tensorattribute_test.cpp
parent50e75b45e06fb9d48cbc6be1dac66e4ee05b03ae (diff)
First version of hardware accelerated calculation of the square of the standard Euclidean distance.
Diffstat (limited to 'searchlib/src/tests/attribute/tensorattribute/tensorattribute_test.cpp')
-rw-r--r--searchlib/src/tests/attribute/tensorattribute/tensorattribute_test.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/searchlib/src/tests/attribute/tensorattribute/tensorattribute_test.cpp b/searchlib/src/tests/attribute/tensorattribute/tensorattribute_test.cpp
index 3ef0ab20cdd..fef063fb1cf 100644
--- a/searchlib/src/tests/attribute/tensorattribute/tensorattribute_test.cpp
+++ b/searchlib/src/tests/attribute/tensorattribute/tensorattribute_test.cpp
@@ -148,8 +148,10 @@ public:
class MockNearestNeighborIndexFactory : public NearestNeighborIndexFactory {
std::unique_ptr<NearestNeighborIndex> make(const DocVectorAccess& vectors,
+ size_t vector_size,
ValueType::CellType cell_type,
const search::attribute::HnswIndexParams& params) const override {
+ (void) vector_size;
(void) params;
assert(cell_type == ValueType::CellType::DOUBLE);
return std::make_unique<MockNearestNeighborIndex>(vectors);