MCPcopy Create free account
hub / github.com/FreedomIntelligence/CMB / __init__

Method __init__

workers/base.py:344–349  ·  view source on GitHub ↗
(self, input_path)

Source from the content-addressed store, hash-verified

342
343class MyDataset(Dataset):
344 def __init__(self, input_path):
345 # data = []
346 with open(input_path) as f:
347 data = json.load(f)
348 print(f"loading {len(data)} data from {input_path}")
349 self.data = data
350
351
352 def __getitem__(self, index):

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected