Commit 0052ea7
committed
fix(handlers): EMAHandler warmup now respects custom name parameter
When attach() is called with a custom name (e.g. for GAN generators),
the momentum warmup scheduler was hardcoded to write to
engine.state.ema_momentum instead of engine.state.{name}. This meant
warmup had no effect with custom names.
Fix: pass the name parameter through to LambdaStateScheduler.1 parent 7358a27 commit 0052ea7
1 file changed
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
248 | 248 | | |
249 | 249 | | |
250 | 250 | | |
251 | | - | |
| 251 | + | |
252 | 252 | | |
253 | 253 | | |
254 | 254 | | |
| |||
0 commit comments