What is the on_train_dataloader hook expected to do? #8735
Locked
Unanswered
ananthsub
asked this question in
Lightning Trainer API: Trainer, LightningModule, LightningDataModule
Replies: 1 comment 4 replies
-
cc @tchaton who added these in 0995d30 Seems like they are used to inject logic in Flash
To call
The only guarantee is that it will get called when the dataloader functions do. |
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.
-
https://github.com/PyTorchLightning/pytorch-lightning/blob/963c26764682fa4cf64c93c5a7572ae0040e9c32/pytorch_lightning/core/hooks.py#L669-L670
Why do we have these hooks? What does it mean to “request” these dataloaders? What logic goes here vs inside the train/val/test/predict dataloader methods directly? What guarantees does the trainer make about when or how often these hooks are called?
Beta Was this translation helpful? Give feedback.
All reactions