Skip to content

Commit

Permalink
address #35
Browse files Browse the repository at this point in the history
  • Loading branch information
lucidrains committed Dec 3, 2024
1 parent b32114f commit b2d0f3a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion ema_pytorch/post_hoc_ema.py
Original file line number Diff line number Diff line change
Expand Up @@ -352,7 +352,7 @@ def checkpoint(self):
path = self.checkpoint_folder / filename

pkg = {
k: v.to(self.checkpoint_dtype)
k: v.to(device = 'cpu', dtype = self.checkpoint_dtype, copy = True)
for k, v in ema_model.state_dict().items()
}

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 = 'ema-pytorch',
packages = find_packages(exclude=[]),
version = '0.7.6',
version = '0.7.7',
license='MIT',
description = 'Easy way to keep track of exponential moving average version of your pytorch module',
author = 'Phil Wang',
Expand Down

0 comments on commit b2d0f3a

Please sign in to comment.