MCPcopy Create free account
hub / github.com/MotrixLab/FineMoGen / __init__

Method __init__

mogen/datasets/dataset_wrappers.py:32–36  ·  view source on GitHub ↗
(self, dataset: Dataset, times: int)

Source from the content-addressed store, hash-verified

30 """
31
32 def __init__(self, dataset: Dataset, times: int):
33 self.dataset = dataset
34 self.times = times
35
36 self._ori_len = len(self.dataset)
37
38 def __getitem__(self, idx: int):
39 return self.dataset[idx % self._ori_len]

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected