aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHenning Baldersheim <balder@yahoo-inc.com>2024-05-13 16:28:08 +0200
committerGitHub <noreply@github.com>2024-05-13 16:28:08 +0200
commite46f3f9181ae53457620a5320f7a09529112aa2d (patch)
tree36a9127b9366f9139669e4cdc7fcbb4fe01f7ff8
parentc03557a7f15fe8f15aaed1b70d24cdce142979a7 (diff)
parent14601d4abe0fdf9f5deb9ffb05aa4da4b2a71b59 (diff)
Merge pull request #31188 from vespa-engine/balder/assertless-typify
Use an assertless typify in innerloop
-rw-r--r--searchlib/src/vespa/searchlib/tensor/euclidean_distance.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/searchlib/src/vespa/searchlib/tensor/euclidean_distance.cpp b/searchlib/src/vespa/searchlib/tensor/euclidean_distance.cpp
index 227f5ebc07d..441ade27d1f 100644
--- a/searchlib/src/vespa/searchlib/tensor/euclidean_distance.cpp
+++ b/searchlib/src/vespa/searchlib/tensor/euclidean_distance.cpp
@@ -45,7 +45,7 @@ public:
return score;
}
double calc_with_limit(TypedCells rhs, double limit) const noexcept override {
- vespalib::ConstArrayRef<AttributeCellType> rhs_vector = rhs.typify<AttributeCellType>();
+ vespalib::ConstArrayRef<AttributeCellType> rhs_vector = rhs.unsafe_typify<AttributeCellType>();
double sum = 0.0;
size_t sz = _lhs_vector.size();
for (size_t i = 0; i < sz && sum <= limit; ++i) {