fix annoy l2 (#3232)

Signed-off-by: shengjun.li <shengjun.li@zilliz.com>
pull/3256/head
shengjun.li 2020-08-12 19:11:13 +08:00 committed by GitHub
parent f9f597b257
commit 43c272fd13
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -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) {