(self, input_path)
| 342 | |
| 343 | class 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): |
nothing calls this directly
no outgoing calls
no test coverage detected