reload_dataloaders_every_n_epochs: how to modify dataloader inside Datamodule #19831
Unanswered
s6mahahn
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
-
I hope this is not answered already.
I have the following situation:
I need to change the dataset used every 2 epochs. In my datamodule i want to return different parts of the train dataset depending on the current epoch. I have seen the suggestion to use self.current_epoch (#7372). But that seems to not exists as i get the error: 'DataModule' object has no attribute 'current_epoch'.
Am I doing something wrong? Or what would be the correct to do it?
Beta Was this translation helpful? Give feedback.
All reactions