-
Notifications
You must be signed in to change notification settings - Fork 1.2k
[python] Support read paimon table as pytorch dataset #6987
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
Conversation
| from torch.utils.data import DataLoader | ||
|
|
||
| table_read = read_builder.new_read() | ||
| dataset = table_read.to_torch(splits, streaming=True) |
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.
Can we find a reference for this parameter?
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.
|
|
||
| return self._data[index] | ||
|
|
||
| def _load_data(self): |
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.
inline this to __init__
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.
👌
|
+1 |
Purpose
Support read paimon table as pytorch dataset
Tests
API and Format
TableRead.to_torch: Convert Paimon table data to pytorch Dataset.
Documentation
updated python-api.md