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
  • Loading branch information
moskomule committed Mar 27, 2019
commit 51cb05c71fc93b19ab6f85d6450ef642d1e5661e
4 changes: 2 additions & 2 deletions homura/callbacks.py
Original file line number Diff line number Diff line change
Expand Up @@ -166,8 +166,8 @@ def __init__(self, *callbacks: Iterable[Callback] or Callback):
callbacks = [callbacks]

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!")
if not isinstance(c, Callback):
raise TypeError(f"{c} is not callback!")
self._callbacks: Iterable[Callback] = list(callbacks)

def before_iteration(self, data: Mapping):
Expand Down