When doing fit()
, self.training
in forward()
keeps turning into False?
#11838
Answered
by
rohitgr7
HaFred
asked this question in
Lightning Trainer API: Trainer, LightningModule, LightningDataModule
-
Hi all, I tried to train a model with pl. And I just ran the trainer.fit(model, train_dataloaders=model.train_dataloader(),
val_dataloaders=model.val_dataloader()) And I found that Thank you very much. |
Beta Was this translation helpful? Give feedback.
Answered by
rohitgr7
Feb 10, 2022
Replies: 1 comment 6 replies
-
does it print |
Beta Was this translation helpful? Give feedback.
6 replies
Answer selected by
HaFred
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
does it print
self.training = False
for all the training steps? maybe you might have checked it during the initial steps where val sanity check happens.