summaryrefslogtreecommitdiffstats
path: root/searchlib/src/tests/tensor
diff options
context:
space:
mode:
authorArne Juul <arnej@verizonmedia.com>2020-10-01 11:35:17 +0000
committerArne Juul <arnej@verizonmedia.com>2020-10-01 13:56:59 +0200
commit42bcbc1428f60b3ebd5778199ce8c085049b788d (patch)
tree0d6e5438e3de5176afecd538766c9cced12e1cd3 /searchlib/src/tests/tensor
parent4685775b573783d3bc350edcb93ef59c997ca1f8 (diff)
track TypedCells move
Diffstat (limited to 'searchlib/src/tests/tensor')
-rw-r--r--searchlib/src/tests/tensor/distance_functions/distance_functions_test.cpp4
-rw-r--r--searchlib/src/tests/tensor/hnsw_index/hnsw_index_test.cpp5
-rw-r--r--searchlib/src/tests/tensor/hnsw_index/stress_hnsw_mt.cpp8
3 files changed, 8 insertions, 9 deletions
diff --git a/searchlib/src/tests/tensor/distance_functions/distance_functions_test.cpp b/searchlib/src/tests/tensor/distance_functions/distance_functions_test.cpp
index f11a28b8716..a9e24e056f2 100644
--- a/searchlib/src/tests/tensor/distance_functions/distance_functions_test.cpp
+++ b/searchlib/src/tests/tensor/distance_functions/distance_functions_test.cpp
@@ -1,6 +1,6 @@
// Copyright Verizon Media. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
-#include <vespa/eval/tensor/dense/typed_cells.h>
+#include <vespa/eval/eval/typed_cells.h>
#include <vespa/searchlib/tensor/distance_functions.h>
#include <vespa/searchlib/tensor/distance_function_factory.h>
#include <vespa/vespalib/gtest/gtest.h>
@@ -10,7 +10,7 @@
LOG_SETUP("distance_function_test");
using namespace search::tensor;
-using vespalib::tensor::TypedCells;
+using vespalib::eval::TypedCells;
using search::attribute::DistanceMetric;
TypedCells t(const std::vector<double> &v) { return TypedCells(v); }
diff --git a/searchlib/src/tests/tensor/hnsw_index/hnsw_index_test.cpp b/searchlib/src/tests/tensor/hnsw_index/hnsw_index_test.cpp
index cd989c03b4e..acc157709c0 100644
--- a/searchlib/src/tests/tensor/hnsw_index/hnsw_index_test.cpp
+++ b/searchlib/src/tests/tensor/hnsw_index/hnsw_index_test.cpp
@@ -1,6 +1,5 @@
// Copyright 2020 Oath Inc. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
-#include <vespa/eval/tensor/dense/typed_cells.h>
#include <vespa/searchlib/common/bitvector.h>
#include <vespa/searchlib/tensor/distance_functions.h>
#include <vespa/searchlib/tensor/doc_vector_access.h>
@@ -39,9 +38,9 @@ public:
_vectors[docid] = vec;
return *this;
}
- vespalib::tensor::TypedCells get_vector(uint32_t docid) const override {
+ vespalib::eval::TypedCells get_vector(uint32_t docid) const override {
ArrayRef ref(_vectors[docid]);
- return vespalib::tensor::TypedCells(ref);
+ return vespalib::eval::TypedCells(ref);
}
};
diff --git a/searchlib/src/tests/tensor/hnsw_index/stress_hnsw_mt.cpp b/searchlib/src/tests/tensor/hnsw_index/stress_hnsw_mt.cpp
index a5e0e1e2b6a..8790df5a140 100644
--- a/searchlib/src/tests/tensor/hnsw_index/stress_hnsw_mt.cpp
+++ b/searchlib/src/tests/tensor/hnsw_index/stress_hnsw_mt.cpp
@@ -8,7 +8,7 @@
#include <future>
#include <vector>
-#include <vespa/eval/tensor/dense/typed_cells.h>
+#include <vespa/eval/eval/typed_cells.h>
#include <vespa/searchlib/common/bitvector.h>
#include <vespa/searchlib/tensor/distance_functions.h>
#include <vespa/searchlib/tensor/doc_vector_access.h>
@@ -109,10 +109,10 @@ public:
memcpy(&_vectors[docid], vec.cbegin(), sizeof(MallocPointVector));
return *this;
}
- vespalib::tensor::TypedCells get_vector(uint32_t docid) const override {
+ vespalib::eval::TypedCells get_vector(uint32_t docid) const override {
assert(docid < NUM_POSSIBLE_DOCS);
ConstVectorRef ref(_vectors[docid]);
- return vespalib::tensor::TypedCells(ref);
+ return vespalib::eval::TypedCells(ref);
}
};
@@ -175,7 +175,7 @@ public:
return result_promise.get_future();
}
void run() override {
- auto v = vespalib::tensor::TypedCells(vec);
+ auto v = vespalib::eval::TypedCells(vec);
auto up = parent.index->prepare_add_document(docid, v, read_guard);
result_promise.set_value(std::move(up));
}