-
Notifications
You must be signed in to change notification settings - Fork 921
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 support for pylibcudf.DataType
serialization
#17352
Add support for pylibcudf.DataType
serialization
#17352
Conversation
Could we just use |
@vyasr according to this SO post we'll actually need to implement |
Co-authored-by: Lawrence Mitchell <wence@gmx.li>
I hadn't considered the additional complexity associated with it being an extension type with a cinit method. That's fine then, let's stick with reduce. |
Bumping to 25.02. |
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, some tiny suggestions
|
||
@pytest.mark.parametrize("tid", [t for t in type_id]) | ||
def test_reduce(tid): | ||
dt = DataType(tid, 0) |
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.
dt = DataType(tid, 0) | |
dt = DataType(tid) |
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.
Serialization looks fine, but I think we can simplify the tests.
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 Peter
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
/merge |
Thanks all for reviews! |
Description
For the multi-GPU cudf-polars work serializing
pylibcudf.DataType
will be required. This change implements the__reduce__
method and add appropriate tests.Checklist