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

add distances for test_performance #305

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

inabao
Copy link
Collaborator

@inabao inabao commented Jan 8, 2025

No description provided.

@inabao inabao requested a review from LHT129 January 8, 2025 06:13
@inabao inabao self-assigned this Jan 8, 2025
@inabao inabao force-pushed the add-distances-for-test-performance branch from 4962088 to de60643 Compare January 8, 2025 13:14
Copy link

codecov bot commented Jan 8, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

see 26 files with indirect coverage changes

H5::DataSet dataset = file.openDataSet("/distances");
H5::DataSpace dataspace = dataset.getSpace();
H5::FloatType datatype(H5::PredType::NATIVE_FLOAT);
dataset.read(obj->neighbors_.get(), datatype, dataspace);
Copy link
Collaborator

Choose a reason for hiding this comment

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

dataset.read(obj->neighbors_.get(), datatype, dataspace);
-->
dataset.read(obj->distances_.get(), datatype, dataspace);

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

done

@@ -32,6 +32,16 @@ using namespace nlohmann;
using namespace spdlog;
using namespace vsag;

float
InnerProduct(const void* pVect1, const void* pVect2, const void* qty_ptr) {
Copy link
Collaborator

Choose a reason for hiding this comment

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

Where usage this method ?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

I have removed this function

Signed-off-by: jinjiabao.jjb <[email protected]>
@inabao inabao added the kind/improvement Code improvements (variable/function renaming, refactoring, etc. ) label Jan 10, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/improvement Code improvements (variable/function renaming, refactoring, etc. ) size/S
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants