(args, optimizer, curr_iter, max_iters)
| 22 | |
| 23 | |
| 24 | def adjust_learning_rate(args, optimizer, curr_iter, max_iters): |
| 25 | curr_lr = compute_learning_rate(args, curr_iter, max_iters) |
| 26 | for param_group in optimizer.param_groups: |
| 27 | param_group["lr"] = curr_lr |
| 28 | return curr_lr |
| 29 | |
| 30 | |
| 31 |
no test coverage detected