(self, model_state_dict: str)
| 119 | return torch.save(network.state_dict(), filename) |
| 120 | |
| 121 | def load(self, model_state_dict: str): |
| 122 | return self.network.module.load_state_dict(torch.load(model_state_dict, map_location=lambda storage, loc: storage)) |
| 123 | |
| 124 | def move_batch(self, batch: TorchTuple, non_blocking=False): |
| 125 | return batch.to(self.device, non_blocking) |
no test coverage detected