self.local_rank in LightningDataModule #12056
Answered
by
rohitgr7
austinmw
asked this question in
Lightning Trainer API: Trainer, LightningModule, LightningDataModule
-
Hi, I was recently reading this example from NVIDIA DALI: I wanted to split the model and datamodule apart. In that case, how can I get |
Beta Was this translation helpful? Give feedback.
Answered by
rohitgr7
Feb 23, 2022
Replies: 1 comment 1 reply
-
hey @austinmw ! you can access them using |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
austinmw
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
hey @austinmw !
you can access them using
self.trainer.local_rank
,self.trainer.global_rank
&self.trainer.world_size
.