google / objax

Apache License 2.0
769 stars 77 forks source link

Provide an easy to way to generate moving average of a model. #174

Closed david-berthelot closed 3 years ago

david-berthelot commented 3 years ago

Right now, the objax.optimizer.ExponentialMovingAverage is very generic as it only focuses on variables. Make an additional version objax.optimizer.ExponentialMovingAverageModule that handles 99% of use cases: take a model and return an EMA model of it.