JingsongLi commented on code in PR #6987: URL: https://github.com/apache/paimon/pull/6987#discussion_r2675572302
########## docs/content/program-api/python-api.md: ########## @@ -473,6 +474,38 @@ ray_dataset = table_read.to_ray(splits) See [Ray Data API Documentation](https://docs.ray.io/en/latest/data/api/doc/ray.data.read_datasource.html) for more details. +### Read Pytorch Dataset + +This requires `torch` to be installed. + +You can read all the data into a `torch.utils.data.Dataset` or `torch.utils.data.IterableDataset`: + +```python +from torch.utils.data import DataLoader + +table_read = read_builder.new_read() +dataset = table_read.to_torch(splits, streaming=True) Review Comment: Can we find a reference for this parameter? -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
