Skip to content

Commit b03a4a1

Browse files
author
ybrovman
committed
hints from pep8speaks
1 parent de030ab commit b03a4a1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pytorch_lightning/trainer/data_loading.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -187,7 +187,7 @@ def _reset_eval_dataloader(self, model: LightningModule,
187187
dataloaders = [dataloaders]
188188

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

192192
num_batches = 0
193193

0 commit comments

Comments
 (0)