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 38e7dcb commit 372f66c
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -218,6 +218,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 372f66c

Please sign in to comment.