aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHenning Baldersheim <balder@yahoo-inc.com>2024-05-13 13:25:44 +0000
committerHenning Baldersheim <balder@yahoo-inc.com>2024-05-13 13:25:44 +0000
commit14601d4abe0fdf9f5deb9ffb05aa4da4b2a71b59 (patch)
tree8811e53ede1317e8cfa6911c868311c44f6e1df2
parent98244d9d3f6c62a3b895a2c207ef94836b74be17 (diff)
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) {