提交 8bd75900 编写于 作者: C chengduoZH

refine CosSimDyFunctor

上级 de26ae41
......@@ -57,8 +57,6 @@ struct CosSimDyFunctor<platform::CUDADeviceContext, T> {
}
};
template struct CosSimDyFunctor<platform::CUDADeviceContext, float>;
} // namespace operators
} // namespace paddle
......
......@@ -56,7 +56,7 @@ struct CosSimFunctor {
tep_x = x[i];
tep_y = y_[i];
xx += tep_x * tep_x;
yy += tep_y * tep_y; // only need
yy += tep_y * tep_y;
xy += tep_x * tep_y;
}
xx = sqrt(xx);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册