mirror of
https://github.com/huggingface/pytorch-image-models.git
synced 2025-06-03 15:01:08 +08:00
Fix class name
This commit is contained in:
parent
feaa3abc51
commit
0f75d48a66
@ -231,9 +231,9 @@ class MultiEpochsDataLoader(torch.utils.data.DataLoader):
|
|||||||
super().__init__(*args, **kwargs)
|
super().__init__(*args, **kwargs)
|
||||||
self._DataLoader__initialized = False
|
self._DataLoader__initialized = False
|
||||||
if self.batch_sampler is None:
|
if self.batch_sampler is None:
|
||||||
self.sampler = RepeatSampler(self.sampler)
|
self.sampler = _RepeatSampler(self.sampler)
|
||||||
else:
|
else:
|
||||||
self.batch_sampler = RepeatSampler(self.batch_sampler)
|
self.batch_sampler = _RepeatSampler(self.batch_sampler)
|
||||||
self._DataLoader__initialized = True
|
self._DataLoader__initialized = True
|
||||||
self.iterator = super().__iter__()
|
self.iterator = super().__iter__()
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user