Skip to content

Commit

Permalink
Update trainer_v1.py
Browse files Browse the repository at this point in the history
  • Loading branch information
ftgreat authored Apr 28, 2024
1 parent a6128ae commit 4798cc6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion flagai/trainer_v1.py
Original file line number Diff line number Diff line change
Expand Up @@ -876,7 +876,7 @@ def train_step_pytorch(self,
optimizer.zero_grad()
else:
optimizer.step()
# optimizer.zero_grad()
optimizer.zero_grad()
self.accumulate_count = 0
else:
self.accumulate_count += 1
Expand Down

0 comments on commit 4798cc6

Please sign in to comment.