(current_step: int)
| 71 | """ |
| 72 | |
| 73 | def lr_lambda(current_step: int): |
| 74 | if current_step < num_warmup_steps: |
| 75 | return float(current_step) / float(max(1.0, num_warmup_steps)) |
| 76 | return 1.0 |
| 77 | |
| 78 | return LambdaLR(optimizer, lr_lambda, last_epoch=last_epoch) |
| 79 |
nothing calls this directly
no outgoing calls
no test coverage detected