-
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
Update and standardize IVF indexes API #1328
Update and standardize IVF indexes API #1328
Conversation
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 PR! Would you mind moving the 'xxx_params' to a second argument in all apis instead of the last one? That will be "much less breaking" change, because the initial implementation, both public and detail
, followed this pattern.
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 fixing these changes. It's look good so far but want to make sure we are still being consistent with the other APIs in the codebase.
For consistency, we use the following order of arguments always:
- Handle
- Params structs
- In
- Out
- Additional (non struct) parameters
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.
PR is looking good. I think just some updates to the docs of the arguments to consistently use [in]
, [out]
and [inout]
everywhere.
Please revert changes to |
a1d8cee
to
7392e52
Compare
7392e52
to
b9fe92c
Compare
@@ -37,3 +38,6 @@ cdef device_matrix_view[int8_t, int64_t, row_major] get_dmv_int8( | |||
|
|||
cdef device_matrix_view[int64_t, int64_t, row_major] get_dmv_int64( | |||
array, check_shape) except * | |||
|
|||
cdef optional[device_matrix_view[int64_t, int64_t, row_major]] create_optional( |
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.
I don't know if cython will allow automatic overloads of this based on type, will it? We might need to rename this something like make_optional_view_int64
or something.
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 good to me so I'm approving. I think we should visit the create_optional
overload in an immediate follow-on though. What do you think?
Sure, we can merge as is, and do the renaming in a follow-up PR. |
/merge |
Update and standardize IVF indexes API + edits on specializations