Skip to content

Commit

Permalink
address #93
Browse files Browse the repository at this point in the history
  • Loading branch information
lucidrains committed Jul 15, 2024
1 parent 3cb1a5e commit 0c3ab54
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion byol_pytorch/trainer.py
Original file line number Diff line number Diff line change
Expand Up @@ -124,8 +124,8 @@ def forward(self):

self.print(f'loss {loss.item():.3f}')

self.optimizer.zero_grad()
self.optimizer.step()
self.optimizer.zero_grad()

self.wait()

Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
setup(
name = 'byol-pytorch',
packages = find_packages(exclude=['examples']),
version = '0.8.1',
version = '0.8.2',
license='MIT',
description = 'Self-supervised contrastive learning made simple',
author = 'Phil Wang',
Expand Down

0 comments on commit 0c3ab54

Please sign in to comment.