Skip to content
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

Merged
merged 1 commit into from Nov 26, 2019
Merged

NSG support MetricType IP #554

merged 1 commit into from Nov 26, 2019

Conversation

tinkerlin
Copy link
Contributor

Fixes #533

@tinkerlin tinkerlin added the kind/bug Issues or changes related a bug label Nov 26, 2019
@tinkerlin tinkerlin self-assigned this Nov 26, 2019
@tinkerlin tinkerlin added this to In progress in v0.6.0 via automation Nov 26, 2019
v0.6.0 automation moved this from In progress to Reviewer approved Nov 26, 2019
}

float
DistanceIP::Compare(const float* a, const float* b, unsigned size) const {
Copy link
Contributor

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 ?

Copy link
Contributor Author

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 {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why struct not class ?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

should be struct

@codecov
Copy link

codecov bot commented Nov 26, 2019

Codecov Report

Merging #554 into 0.6.0 will not change coverage.
The diff coverage is n/a.

@@           Coverage Diff           @@
##            0.6.0     #554   +/-   ##
=======================================
  Coverage   88.21%   88.21%           
=======================================
  Files         282      282           
  Lines       12131    12131           
=======================================
  Hits        10701    10701           
  Misses       1430     1430

@JinHai-CN JinHai-CN merged commit c0ea4a1 into milvus-io:0.6.0 Nov 26, 2019
v0.6.0 automation moved this from Reviewer approved to Done Nov 26, 2019
yah01 pushed a commit to yah01/milvus that referenced this pull request Feb 13, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/bug Issues or changes related a bug
Projects
No open projects
v0.6.0
  
Done
Development

Successfully merging this pull request may close these issues.

None yet

4 participants