(self, ckpt: Union[None, str, dict])
| 68 | # engine(self) |
| 69 | |
| 70 | def apply_ckpt(self, ckpt: Union[None, str, dict]): |
| 71 | if ckpt is None: |
| 72 | return |
| 73 | self.init_from_ckpt(ckpt) |
| 74 | |
| 75 | def init_from_ckpt(self, path, ignore_keys=list()): |
| 76 | sd = torch.load(path, map_location="cpu")["state_dict"] |
no test coverage detected