Load optimizer from checkpoint. Args: checkpoint_path (str) optim (torch.optim) Returns: optim
(checkpoint_path, optim)
| 242 | |
| 243 | |
| 244 | def load_optim(checkpoint_path, optim): |
| 245 | """Load optimizer from checkpoint. |
| 246 | |
| 247 | Args: |
| 248 | checkpoint_path (str) |
| 249 | optim (torch.optim) |
| 250 | |
| 251 | Returns: |
| 252 | optim |
| 253 | |
| 254 | """ |
| 255 | |
| 256 | return load_model_optim(checkpoint_path, None, optim)[1] |
| 257 | |
| 258 | |
| 259 | def save_tensor_images(images, filename, nrow=None, normalize=True): |
nothing calls this directly
no test coverage detected