Skip to content

Commit

Permalink
fix instance check
Browse files Browse the repository at this point in the history
  • Loading branch information
justusschock committed Jun 29, 2020
1 parent d50a2f1 commit 6901093
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pytorch_lightning/trainer/supporters.py
Original file line number Diff line number Diff line change
Expand Up @@ -189,7 +189,7 @@ def _wrap_loaders_max_size_cycle(self) -> Any:
for v in self.loaders])

# dataloaders are iterable but not sequence
elif isinstance(Iterable):
elif isinstance(self.loaders, Iterable):
self.loaders = CycleIterator(self.loaders, length=length)
else:
raise ValueError(f'Invalid Datatype for loaders: {type(self.loaders).__name__}')
Expand Down

0 comments on commit 6901093

Please sign in to comment.