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

Allow serialization on streams #173

Merged
merged 3 commits into from
Jun 5, 2024

Conversation

benfred
Copy link
Member

@benfred benfred commented Jun 4, 2024

This change allows serializing to a std::ostream and deserializaing from a std::istream. This also fixes some minor docstring issues in the C++ serialization api's.

This change allows serializing to a std::ostream and deserializaing
from a std::istream. This also fixes some minor docstring issues
in the C++ serialization apis
@benfred benfred added breaking Introduces a breaking change improvement Improves an existing functionality labels Jun 4, 2024
@benfred benfred requested a review from a team as a code owner June 4, 2024 18:01
@github-actions github-actions bot added the cpp label Jun 4, 2024
Copy link
Member

@divyegala divyegala left a comment

Choose a reason for hiding this comment

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

Were there no changes to Python wrappers?

cpp/include/cuvs/neighbors/cagra.hpp Show resolved Hide resolved
cpp/src/neighbors/cagra_serialize.cuh Outdated Show resolved Hide resolved
@benfred
Copy link
Member Author

benfred commented Jun 5, 2024

Thanks for the review @divyegala !

Were there no changes to Python wrappers?

The python wrappers are using the c-api - so don't need updating (and the only python wrapper we have for serialization is CAGRA which has been updated here, I'll expose the ivf-* methods in a different PR).

@benfred
Copy link
Member Author

benfred commented Jun 5, 2024

/merge

@rapids-bot rapids-bot bot merged commit 38b3147 into rapidsai:branch-24.08 Jun 5, 2024
54 checks passed
@benfred benfred deleted the stream_serialization branch June 5, 2024 19:11
difyrrwrzd added a commit to difyrrwrzd/cuvs that referenced this pull request Aug 10, 2024
This change allows serializing to a std::ostream and deserializaing from a std::istream. This also fixes some minor docstring issues in the C++ serialization api's.

Authors:
  - Ben Frederickson (https://github.com/benfred)

Approvers:
  - Divye Gala (https://github.com/divyegala)

URL: rapidsai/cuvs#173
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
breaking Introduces a breaking change cpp improvement Improves an existing functionality
Projects
Development

Successfully merging this pull request may close these issues.

2 participants