update_dataloader#
- ignite.engine.deterministic.update_dataloader(dataloader, new_batch_sampler)[source]#
Helper function to replace current batch sampler of the dataloader by a new batch sampler. Function returns new dataloader with new batch sampler.
- Parameters
dataloader (DataLoader) – input dataloader
new_batch_sampler (BatchSampler) – new batch sampler to use
- Returns
DataLoader
- Return type