(handler, fp: str, *args, **kwargs)
| 283 | |
| 284 | @staticmethod |
| 285 | def load(handler, fp: str, *args, **kwargs): # pylint: disable=W0613 |
| 286 | assert isinstance(handler, LocalClient) |
| 287 | assert os.path.exists(fp), f"{fp} is not found!" |
| 288 | with open(fp, "rb") as f: |
| 289 | states = torch.load(f, *args, **kwargs) |
| 290 | return states |
| 291 | |
| 292 | @staticmethod |
| 293 | def assert_fp_exists(handler, folder): |