Deprecate TrainerDataLoadingMixin
and move logic to DataConnector
#11248
Labels
TrainerDataLoadingMixin
and move logic to DataConnector
#11248
Uh oh!
There was an error while loading. Please reload this page.
Proposed refactor
Move everything from this class:
https://github.com/PyTorchLightning/pytorch-lightning/blob/ca9b25db80f08a3b9a3c448048949ec1adb845ba/pytorch_lightning/trainer/data_loading.py#L46
to this class:
https://github.com/PyTorchLightning/pytorch-lightning/blob/ca9b25db80f08a3b9a3c448048949ec1adb845ba/pytorch_lightning/trainer/connectors/data_connector.py#L36
Motivation
The
TrainerDataLoadingMixin
is the last remaining Mixin afterTrainerCallbackHookMixin
andTrainerOptimizersMixin
have been deprecated. As part of our move towards composition over inheritance, it makes sense to deprecate this last one as well and have no mixins on the Trainer class.cc @justusschock @awaelchli @akihironitta @rohitgr7 @ninginthecloud @tchaton
The text was updated successfully, but these errors were encountered: