(current_step)
| 37 | """ |
| 38 | |
| 39 | def lr_lambda(current_step): |
| 40 | if current_step < num_warmup_steps: |
| 41 | return float(current_step) / float(max(1.0, num_warmup_steps)) |
| 42 | return 1.0 |
| 43 | |
| 44 | return LambdaLR(optimizer, lr_lambda, last_epoch=last_epoch) |
| 45 |
nothing calls this directly
no outgoing calls
no test coverage detected