未验证 提交 cecbeacc 编写于 作者: S shengjun.li 提交者: GitHub

fix annoy l2 (#3235)

Signed-off-by: Nshengjun.li <shengjun.li@zilliz.com>
上级 a891c5be
......@@ -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) {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册