-
Notifications
You must be signed in to change notification settings - Fork 197
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
IVF-PQ Python wrappers #970
IVF-PQ Python wrappers #970
Conversation
cf40569
to
acdc3c4
Compare
There are a few items that still need to be addressed, but otherwise it is ready for the first review @cjnolet
|
What would you think about re-exporting default values of C++ params structs? Like we did a while ago in cuml/linearSVM (rapidsai/cuml#4381). |
@achirkin Thanks for the suggestion! yes it occurred to me to return to this idea. I would dedicate a follow up PR for this task. |
There is one issue pending: forwarding the C++ exceptions from
This happens because Cython tries define a variable for the return value, and the return value type ( |
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.
Thanks for adding this feature to pylibraft! I think the feature mostly looks ready to go, but I'd like to keep pylibraft's APIs consistent and make sure they all directly correspond to the c++ APIs they are wrapping.
Closes #998 |
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.
This looks really good overall. I'm excited to have this in the python API!
2d6da94
to
1b5ff59
Compare
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.
Thanks @cjnolet for the review! I have addressed the issues. There is a problem with the extend test, I am looking into it.
Fixed the problem with |
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.
Looking great! I definitely think this is going to make it into 22.12, just really one little thing- hiding the cuda data types behind np.dtype for API consistency
Co-authored-by: Ben Frederickson <[email protected]>
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.
Thanks for the reviews, I have updated the PR!
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.
LGTM. Thanks again @tfeher!
@gpucibot merge |
This PR adds python wrappers to IVF-PQ.