fix issue with ema class

This commit is contained in:
Phil Wang
2022-04-27 16:40:02 -07:00
parent b093f92182
commit 6edb1c5dd0
2 changed files with 2 additions and 2 deletions

View File

@@ -35,7 +35,7 @@ class EMA(nn.Module):
self.update_moving_average(self.ema_model, self.online_model)
def update_moving_average(ma_model, current_model):
def update_moving_average(self, ma_model, current_model):
def calculate_ema(beta, old, new):
if not exists(old):
return new