Skip to content

Commit 523d492

Browse files
committed
flake8
1 parent 137cf11 commit 523d492

File tree

3 files changed

+3
-4
lines changed

3 files changed

+3
-4
lines changed

pytorch_lightning/trainer/supporters.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -257,7 +257,7 @@ def __init__(self, datasets: Union[Sequence, Mapping], mode: str):
257257
Args:
258258
datasets: a sequence/mapping datasets. Can be a collections of torch.utils.Dataset,
259259
Iterable or even None.
260-
mode: whether to use the minimum number of batches in all samples or the maximum
260+
mode: whether to use the minimum number of batches in all samples or the maximum
261261
number of batches in all samples.
262262
263263
"""
@@ -307,7 +307,7 @@ def __len__(self) -> int:
307307
class CombinedLoader(object):
308308
"""
309309
Combines different dataloaders and allows sampling in parallel.
310-
310+
311311
Supported modes are 'min_size', which raises StopIteration after the shortest loader
312312
(the one with the lowest number of batches) is done, and 'max_size_cycle` which raises
313313
StopIteration after the longest loader (the one with most batches) is done, while cycling

tests/base/model_train_dataloaders.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ def train_dataloader__multiple_mapping(self):
4242
"""Return a mapping loaders with different lengths"""
4343
return {'a': self.dataloader(train=True, num_samples=100),
4444
'b': self.dataloader(train=True, num_samples=50)}
45-
45+
4646
def train_dataloader__multiple_sequence(self):
4747
return [self.dataloader(train=True, num_samples=100),
4848
self.dataloader(train=True, num_samples=50)]

tests/base/model_train_steps.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -174,4 +174,3 @@ def training_step__multiple_dataloaders(self, batch, batch_idx, optimizer_idx=No
174174
}
175175
)
176176
return output
177-

0 commit comments

Comments
 (0)