(filename, alg, args)
| 19 | |
| 20 | |
| 21 | def save_checkpoint(filename, alg, args): |
| 22 | save_dict = { |
| 23 | "args": vars(args), |
| 24 | "model_dict": alg.cpu().state_dict() |
| 25 | } |
| 26 | torch.save(save_dict, os.path.join(args.output, filename)) |
| 27 | |
| 28 | |
| 29 | def train_valid_target_eval_names(args): |
no test coverage detected