New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
NSG support MetricType IP #554
Conversation
} | ||
|
||
float | ||
DistanceIP::Compare(const float* a, const float* b, unsigned size) const { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why unsigned ?
can use int32_t or int64_t ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No
namespace knowhere { | ||
namespace algo { | ||
|
||
struct Distance { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why struct not class ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
should be struct
Codecov Report
@@ Coverage Diff @@
## 0.6.0 #554 +/- ##
=======================================
Coverage 88.21% 88.21%
=======================================
Files 282 282
Lines 12131 12131
=======================================
Hits 10701 10701
Misses 1430 1430 |
Fixes #533