Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

v0.5.1: Multi-node distributed training ready #12

Merged
merged 17 commits into from
Mar 28, 2019
Prev Previous commit
Next Next commit
fix: unique weight saver
  • Loading branch information
moskomule committed Mar 27, 2019
commit 58f2d7dedfef80dbd2e9d81f05e10ef2550ef7fd
4 changes: 2 additions & 2 deletions homura/callbacks.py
Original file line number Diff line number Diff line change
Expand Up @@ -165,8 +165,8 @@ def __init__(self, *callbacks: Iterable[Callback] or Callback):
if not isinstance(callbacks, Iterable):
callbacks = [callbacks]

for c in callbacks:
if c is not None and not isinstance(c, Callback):
for c in [c for c in callbacks if c is not None]:
if isinstance(c, Callback):
raise TypeError(f"{c} is not a callback!")
self._callbacks: Iterable[Callback] = list(callbacks)

Expand Down