(self, path: str)
| 36 | num_classes: int = 1000 |
| 37 | |
| 38 | def save(self, path: str): |
| 39 | os.makedirs(os.path.dirname(path), exist_ok=True) |
| 40 | with open(path, 'w') as f: |
| 41 | json.dump(asdict(self), f, indent=2) |
| 42 | |
| 43 | @classmethod |
| 44 | def load(cls, path: str) -> 'Config': |
no outgoing calls
no test coverage detected