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

Python API for IVF-Flat serialization #1516

Merged
merged 9 commits into from
May 19, 2023

Conversation

tfeher
Copy link
Contributor

@tfeher tfeher commented May 16, 2023

This PR adds Python API for IVF-Flat serialization.

closes #752

@tfeher tfeher added improvement Improvement / enhancement to an existing function non-breaking Non-breaking change and removed cpp python labels May 16, 2023
@tfeher tfeher self-assigned this May 16, 2023
@tfeher tfeher marked this pull request as ready for review May 16, 2023 17:45
@tfeher tfeher requested review from a team as code owners May 16, 2023 17:45
if (!index) { RAFT_FAIL("Invalid index pointer"); } \
*index = raft::neighbors::ivf_flat::deserialize<DTYPE, int64_t>(handle, filename); \
}; \
void serialize(raft::resources const& handle, \
Copy link
Contributor Author

@tfeher tfeher May 19, 2023

Choose a reason for hiding this comment

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

Note that this is not used by the current PR (only (de)serialize_file is used). But I think this can be used to fix rapidsai/cuml#4743, that motivates to keep it in the PR.

Copy link
Member

@cjnolet cjnolet left a comment

Choose a reason for hiding this comment

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

LGTM!

@cjnolet
Copy link
Member

cjnolet commented May 19, 2023

/merge

@rapids-bot rapids-bot bot merged commit af7e067 into rapidsai:branch-23.06 May 19, 2023
54 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CMake cpp improvement Improvement / enhancement to an existing function non-breaking Non-breaking change python
Projects
Development

Successfully merging this pull request may close these issues.

[FEA] IVF-flat serialization
2 participants