Any guide on how the callbacks and hooks workflow works? #10869
-
Hi!
|
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
hi!
For a complete cycle, there can be just one lightning module, so hooks related to the lightning module will be called only once whenever they are required, but in the case of callbacks, it can be many so it sequentially makes the calls to the same hook at that time for each callback. You can read about callbacks and hooks here: https://pytorch-lightning.readthedocs.io/en/latest/extensions/callbacks.html |
Beta Was this translation helpful? Give feedback.
hi!
on_train_start
, when training epoch starts it callson_train_epoch_start
etc... The hook name can also help you determine where it's called.For a complete cycle, there can be just one lightning module, so hooks related to the lightning module will be called only once whenever they are required, but in the case of callbacks, it can…