Skip to content

Commit

Permalink
fix devastating TeacherUpdate mess up
Browse files Browse the repository at this point in the history
(exclusive to branches develop2/3)
  • Loading branch information
FrenchKrab committed Mar 18, 2022
1 parent ddb7eb8 commit 66a873f
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -260,6 +260,7 @@ def __init__(

def enqueue_teacher(self, teacher: OrderedDict[str, torch.Tensor]):
if len(self.last_weights) >= self.average_of:
self.last_weights.pop(0)
self.last_weights.append(teacher)

def get_updated_weights(
Expand Down

0 comments on commit 66a873f

Please sign in to comment.