mirror of
https://gitee.com/milvus-io/milvus.git
synced 2025-12-28 22:45:26 +08:00
fix annoy l2 (#3232)
Signed-off-by: shengjun.li <shengjun.li@zilliz.com>
This commit is contained in:
parent
f9f597b257
commit
43c272fd13
@ -783,7 +783,7 @@ struct Euclidean : Minkowski {
|
||||
}
|
||||
template<typename T>
|
||||
static inline T normalized_distance(T distance) {
|
||||
return sqrt(std::max(distance, T(0)));
|
||||
return distance;
|
||||
}
|
||||
template<typename S, typename T>
|
||||
static inline void init_node(Node<S, T>* n, int f) {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user