expose device in dataset / DataModule #11049
Unanswered
slbuilder
asked this question in
Lightning Trainer API: Trainer, LightningModule, LightningDataModule
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Is there a way to access the device being used for the instance of DataModule/Dataset.
My requirement is to be able to load data directly on GPU without the copy overhead of cpu to gpu. I already have the code to do it. I specify and pass the device around in native PyTorch like so.
Is there a way to achieve something similar with the current device id exposed in Pytorch-lightning?
Beta Was this translation helpful? Give feedback.
All reactions