[Enhance] Update reload_dataloaders_every_epoch to reload_dataloaders_every_n_epoch #5001
Labels
data handling
Generic data-related topic
feature
Is an improvement or enhancement
good first issue
Good for newcomers
priority: 2
Low priority task
🚀 Feature
reload_dataloaders_every_epoch
reloads dataloader every epoch. We can change it to reload dataloaders after every n epochs. It will accept both bool and int values.True
will be treated as 1 andFalse
will be treated as 0 (means no reload).Motivation
Recently a request came up on slack regarding reloading dataloaders after some epochs. Also since we have enhanced
fast_dev_run
like this, we can update this too.Alternatives
Can be done manually by calling the method to reload dataloaders with a simple conditional statement by setting
reload_dataloaders_every_epoch=False
, but we can let this attribute accept an integer to avoid manual work.The text was updated successfully, but these errors were encountered: