Skip to content

Commit 7e2b36e

Browse files
authored
Limit test_pytorch_lightning to 1 device
http://b/238238348
1 parent 541a658 commit 7e2b36e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/test_pytorch_lightning.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ def test_version(self):
6262
def test_mnist(self):
6363
dm = LitDataModule()
6464
model = LitClassifier()
65-
trainer = pl.Trainer(max_epochs=1)
65+
trainer = pl.Trainer(max_epochs=1, log_every_n_steps=1, devices=1)
6666
trainer.fit(model, datamodule=dm)
6767

6868
self.assertIn("train_loss", trainer.logged_metrics)

0 commit comments

Comments
 (0)