MCPcopy Create free account
hub / github.com/microsoft/Cream / DataInfo

Class DataInfo

TinyCLIP/src/training/data.py:68–77  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

66
67@dataclass
68class DataInfo:
69 dataloader: DataLoader
70 sampler: DistributedSampler = None
71 shared_epoch: SharedEpoch = None
72
73 def set_epoch(self, epoch):
74 if self.shared_epoch is not None:
75 self.shared_epoch.set_value(epoch)
76 if self.sampler is not None and isinstance(self.sampler, DistributedSampler):
77 self.sampler.set_epoch(epoch)
78
79
80def expand_urls(urls, weights=None):

Callers 4

get_imagenetFunction · 0.85
get_wds_datasetFunction · 0.85
get_csv_datasetFunction · 0.85
get_synthetic_datasetFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected