Skip to content

Commit

Permalink
CombinedLoader example fix (#9906)
Browse files Browse the repository at this point in the history
  • Loading branch information
kainoj authored Oct 12, 2021
1 parent f14a47a commit dc27c72
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/source/guides/data.rst
Original file line number Diff line number Diff line change
Expand Up @@ -227,8 +227,8 @@ needs to wrap the DataLoaders with `CombinedLoader`.


def val_dataloader(self):
loader_1 = DataLoader()
loader_2 = DataLoader()
loader_a = DataLoader()
loader_b = DataLoader()
loaders = {"a": loader_a, "b": loader_b}
combined_loaders = CombinedLoader(loaders, "max_size_cycle")
return combined_loaders
Expand Down

0 comments on commit dc27c72

Please sign in to comment.