MCPcopy Create free account
hub / github.com/QWTforGithub/T2LDM / __init__

Method __init__

timm/data/loader.py:262–267  ·  view source on GitHub ↗
(self, *args, **kwargs)

Source from the content-addressed store, hash-verified

260class MultiEpochsDataLoader(torch.utils.data.DataLoader):
261
262 def __init__(self, *args, **kwargs):
263 super().__init__(*args, **kwargs)
264 self._DataLoader__initialized = False
265 self.batch_sampler = _RepeatSampler(self.batch_sampler)
266 self._DataLoader__initialized = True
267 self.iterator = super().__iter__()
268
269 def __len__(self):
270 return len(self.batch_sampler.sampler)

Callers

nothing calls this directly

Calls 3

_RepeatSamplerClass · 0.85
__init__Method · 0.45
__iter__Method · 0.45

Tested by

no test coverage detected