You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I think this is an important feature as preparing a dataset can be costly and shouldn't be done several times.
How do you propose to solve this problem if we remove those properties ?
The argument is that the users should implement the checks for "should download/prepare" themselves, giving them more power and responsibility.
carmocca
changed the title
Remove has_{setup/teardown}_{stage} properties from DataModule
[RFC] Remove has_{setup/teardown}_{stage} properties from DataModule
May 10, 2021
🚀 Feature
Carrying forward discussion from #7289 (comment)
Remove these settings to give more control to the users and making trainer execution easier
https://github.com/PyTorchLightning/pytorch-lightning/blob/490cc57809ebeba19003b4101393a8a058217c31/pytorch_lightning/core/datamodule.py#L33-L52
Motivation
Consecutive calls like this have different behavior:
The second trainer.fit call will not run the prepare data, setup, or teardown hooks.
Removing this check gives us these advantages
cc @carmocca
Pitch
Remove this code:
cc @carmocca
Alternatives
Additional context
The text was updated successfully, but these errors were encountered: