Skip to content

Commit

Permalink
hints from pep8speaks
Browse files Browse the repository at this point in the history
  • Loading branch information
ybrovman authored and Borda committed May 5, 2020
1 parent b5ff528 commit 6e805a0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pytorch_lightning/trainer/data_loading.py
Original file line number Diff line number Diff line change
Expand Up @@ -219,7 +219,7 @@ def _reset_eval_dataloader(self, model: LightningModule, mode: str) -> Tuple[int
' this off for validation and test dataloaders.')

# add samplers
dataloaders = [self.auto_add_sampler(dl, train=False) for dl in dataloaders if dl != None]
dataloaders = [self.auto_add_sampler(dl, train=False) for dl in dataloaders if dl is not None]

num_batches = 0

Expand Down

0 comments on commit 6e805a0

Please sign in to comment.