Is there an initialization method/callback after __init__ shared by fit/validate/test in LightningModule? #16853
Unanswered
semaphore-egg
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.
-
The
logger
is not available in__init__
of LightningModule.But some shared initialization related to
logger
is required by my code's fit/validate/test mode.Is there an initialization method shared by
fit/validate/test
in LightningModule?Currently, I make a method and manually call it in
on_train_start
,on_validation_start
, andon_test_start
, which seems not elegant.Beta Was this translation helpful? Give feedback.
All reactions