Access trainer parameters from LightningModule #6723
Answered
by
akihironitta
nicolas-dufour
asked this question in
Lightning Trainer API: Trainer, LightningModule, LightningDataModule
-
Hi, Thanks for the help! |
Beta Was this translation helpful? Give feedback.
Answered by
akihironitta
Apr 3, 2021
Replies: 1 comment
-
@nicolas-dufour You can access it with |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
aribornstein
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
@nicolas-dufour You can access it with
self.trainer.max_epochs
.