Description
Exponential moving average update for target networks (momentum encoders).
Operation
# Update target params: target = tau * target + (1 - tau) * source
ema_update(target_params, source_params, tau=0.999)
Implementation
- Fused kernel for all parameters
- In-place update (no allocation)
- Support for parameter groups with different tau
Tests
Used In
JEPA, BYOL, MoCo, EMA model averaging, Polyak averaging
Description
Exponential moving average update for target networks (momentum encoders).
Operation
Implementation
Tests
Used In
JEPA, BYOL, MoCo, EMA model averaging, Polyak averaging