diff options
author | Henning Baldersheim <balder@yahoo-inc.com> | 2021-11-26 12:11:06 +0000 |
---|---|---|
committer | Henning Baldersheim <balder@yahoo-inc.com> | 2021-11-26 13:14:33 +0000 |
commit | ef0b1301517fd689f617e0cafb4afe283b6483fc (patch) | |
tree | cc7d586b29136bb18ab6c9d39bac500557e4835e /searchlib/src | |
parent | b54f9353181518054a1aaafc294df03ee15d58de (diff) |
- Extend test to cover iterations in outer loop.
- Rename for clarity.
- Fix logic bug checking for fallback.
Diffstat (limited to 'searchlib/src')
-rw-r--r-- | searchlib/src/vespa/searchlib/tensor/euclidean_distance.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/searchlib/src/vespa/searchlib/tensor/euclidean_distance.h b/searchlib/src/vespa/searchlib/tensor/euclidean_distance.h index df6fe4a6df4..25fac9c41c4 100644 --- a/searchlib/src/vespa/searchlib/tensor/euclidean_distance.h +++ b/searchlib/src/vespa/searchlib/tensor/euclidean_distance.h @@ -49,7 +49,7 @@ public: static const int8_t *cast(const vespalib::eval::Int8Float * p) { return reinterpret_cast<const int8_t *>(p); } double calc(const vespalib::eval::TypedCells& lhs, const vespalib::eval::TypedCells& rhs) const override { constexpr vespalib::eval::CellType expected = vespalib::eval::get_cell_type<FloatType>(); - if ((lhs.type != expected) || (rhs.type == expected)) { + if ((lhs.type != expected) || (rhs.type != expected)) { return SquaredEuclideanDistance::calc(lhs, rhs); } auto lhs_vector = lhs.typify<FloatType>(); |