Does Lightning disable PyTorch registered forward hooks when using trainer.validate? #18202
Unanswered
jonathanking
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.
-
I've registered some forward hooks in my model in order to extract intermediate layer activations. I've done this via this method:
The
activations
dictionary gets populated when usingtrainer.fit
but nottrainer.validate
. Why is this? How can I keep this behavior duringtrainer.validate
?Beta Was this translation helpful? Give feedback.
All reactions