(self, path)
| 14 | self.pi_const.requires_grad = False |
| 15 | |
| 16 | def load_checkpoint(self, path): |
| 17 | self.load_state_dict(torch.load(os.path.join(path))) |
| 18 | self.eval() |
| 19 | |
| 20 | def save_checkpoint(self, path): |
| 21 | torch.save(self.state_dict(), path) |
no outgoing calls
no test coverage detected