MCPcopy Create free account
hub / github.com/WuTao-CS/CustomCrafter / __init__

Method __init__

custom.py:297–298  ·  view source on GitHub ↗
(self, dataset)

Source from the content-addressed store, hash-verified

295 """Wraps an arbitrary object with __len__ and __getitem__ into a pytorch dataset"""
296
297 def __init__(self, dataset):
298 self.data = dataset
299
300 def __len__(self):
301 return len(self.data)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected