Skip to content
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

Create a utility class with dask-cuda that mimics Pytorch's DataLoader #120

Open
wants to merge 7 commits into
base: branch-22.02
Choose a base branch
from

Conversation

NV-jpt
Copy link

@NV-jpt NV-jpt commented Sep 30, 2021

This is a draft PR to resolve the feature request #99.

Two types of PyTorch Dataset classes are provided here - one Iterable-style Dataset and one Map-style Dataset. Both of these utility classes are empowered by CuPy-backed Dask Arrays - which allow for zero-copy data transfer to PyTorch. Dask is utilized to allow for scheduling of CuPy array transformations (such as CuCIM operations) before delivering the data to PyTorch's Dataloader.

First, please see this gist example of the Map-style Dataset in action.

Next, please see this gist example of the Iterable-style Dataset in action.

@NV-jpt NV-jpt requested a review from a team as a code owner September 30, 2021 23:27
@jakirkham
Copy link
Member

cc @gigony (for awareness)

@gigony gigony added feature request New feature or request non-breaking Introduces a non-breaking change labels Oct 13, 2021
@gigony gigony added this to the v21.12.00 milestone Oct 13, 2021
@jakirkham jakirkham changed the base branch from branch-21.12 to branch-22.02 November 30, 2021 21:33
@jakirkham jakirkham modified the milestones: v21.12.00, v22.02.00 Nov 30, 2021
@gigony gigony removed this from the v22.02.00 milestone Apr 5, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature request New feature or request non-breaking Introduces a non-breaking change
Projects
Status: No status
Development

Successfully merging this pull request may close these issues.

3 participants