(x, warmup=0.002)
| 18 | |
| 19 | |
| 20 | def warmup_linear(x, warmup=0.002): |
| 21 | if warmup == 0.0: |
| 22 | return 1.0 |
| 23 | elif x < warmup: |
| 24 | return x / warmup |
| 25 | return 1.0 - x |
| 26 | |
| 27 | |
| 28 | def warmup_linear_decay_exp(global_step, |
nothing calls this directly
no outgoing calls
no test coverage detected