'predict' feature and multi-gpu #10212
Unanswered
gianscarpe
asked this question in
Lightning Trainer API: Trainer, LightningModule, LightningDataModule
Replies: 2 comments
-
I think it does return predictions from all the devices when you do predictions = trainer.predict(...) |
Beta Was this translation helpful? Give feedback.
0 replies
-
Hi @rohitgr7, I think in my particular case this does not happen because the model returns a (pickable) object instead of a tensor. Pytorch distributed utilities have a specific function for gathering object. Could it be the case? |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Dear All,
is it possible to get predict results onto a single gpu/thread when using 'trainer.predict' and multiple-gpus?
I couldn't figure it out!
Thansk
Beta Was this translation helpful? Give feedback.
All reactions