How to switch on the training pattern of the model in test-step? #16216
Unanswered
Struggle-Forever
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.
-
In some cases, I need to turn on the training mode of the model in the
test_step()
to complete the computation, and then turn off the training mode. I have tried using self.train() but it keeps reporting errors.Beta Was this translation helpful? Give feedback.
All reactions