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 (torch.utils.data.dataloader.DataLoader) – input dataloader
new_batch_sampler (torch.utils.data.sampler.BatchSampler) – new batch sampler to use
- Returns
DataLoader
- Return type
torch.utils.data.dataloader.DataLoader