get current stage in pytorch-lightning #12988
Unanswered
2533245542
asked this question in
Lightning Trainer API: Trainer, LightningModule, LightningDataModule
Replies: 1 comment
-
use |
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
Uh oh!
There was an error while loading. Please reload this page.
-
Hi everyone,
I have a question related to pytorch lightning's module.
Say I am in the forward function and I want to see if I am in which of the train/val/test stage.
Is there a way to do so?
Didn't get lucky with google search and a look into the source code seems like self.training is boolean for indicating training/non-training stage, but still not enough.
Beta Was this translation helpful? Give feedback.
All reactions