Skip to content

Commit 24def53

Browse files
committed
create checkpoint with only 1 device
1 parent 3263998 commit 24def53

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/tests_pytorch/core/test_saving.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88

99
def create_boring_checkpoint(tmpdir):
1010
model = BoringModel()
11-
trainer = pl.Trainer(accelerator="auto", max_epochs=1, enable_model_summary=False, enable_progress_bar=False)
11+
trainer = pl.Trainer(devices=1, max_epochs=1, enable_model_summary=False, enable_progress_bar=False)
1212
trainer.fit(model)
1313
trainer.save_checkpoint(f"{tmpdir}/boring.ckpt")
1414

0 commit comments

Comments
 (0)