-
Notifications
You must be signed in to change notification settings - Fork 174
Closed
Description
🚀 The feature
In previous DataLoader, we relies on the argument of pin_memory to launch a thread to move Tensor from CPU to GPU shared memory. This feature should be implemented as a DataPipe with is_replicable() -> False to keep it in the main process.
This should be easily achieved by doing the similar thing as prefetch with buffer size 1.
Motivation, pitch
Feature parity with DataLoader
This DataPipe can also become an indicator that the subsequent operations are on GPU.
Alternatives
No response
Additional context
No response
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels