multiple on_train_epoch_start callbacks but only one on_train_epoch_end? #10140
-
|
I thought the number of on_train_epoch_start and on_train_epoch_end should be equal to the number of epochs. But when I passed the following callback function: on_train_epoch_end is only called in the 0th epoch:
Any idea why this is happening? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
|
It turns out that the issue is because I was chaining many data loaders with itertools.chain() which was called only once by lightning. |
Beta Was this translation helpful? Give feedback.
It turns out that the issue is because I was chaining many data loaders with itertools.chain() which was called only once by lightning.