Difference between on_batch_start
and on_train_batch_start
?
#9727
Unanswered
daniellepintz
asked this question in
Lightning Trainer API: Trainer, LightningModule, LightningDataModule
Replies: 1 comment 4 replies
-
I remember this was discussed a few months back, on_batch_* was supposed to run for all train/valid/test/predict, but looks like it just runs in case of training. Looks redundant now in case there are no plans to call it irrespective of running_stage. |
Beta Was this translation helpful? Give feedback.
4 replies
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.
-
What is the difference between
on_batch_start
andon_train_batch_start
? Same question foron_batch_end
andon_train_batch_end
.https://github.com/PyTorchLightning/pytorch-lightning/blob/49d03f87fed0458cbb146d38243be56be4cb9689/pytorch_lightning/trainer/callback_hook.py#L155-L173
If they are different, can we make the docstrings different?
If they are the same, can we deprecate one of them?
Beta Was this translation helpful? Give feedback.
All reactions