chore: import upstream snapshot with attribution

This commit is contained in:
wehub-resource-sync
2026-07-13 13:17:40 +08:00
commit f1825c8ceb
10096 changed files with 2364182 additions and 0 deletions
@@ -0,0 +1,10 @@
from torch.utils.data import IterableDataset
class TorchIterableDataset(IterableDataset):
def __init__(self, generator_func):
self.generator_func = generator_func
def __iter__(self):
it = self.generator_func()
yield from it