Similarly to the fact that PPO trainer can be redefined by using
@agent.on(Events.STARTED)
def _(engine):
engine.state.trainer = ...
Extend this to the Dataloader.
However, it need to be decided / if it is safe to have a fixed Dataloader over a varying Dataset or to store a Dataloder factory.