Skip to content

Commit

Permalink
update test
Browse files Browse the repository at this point in the history
  • Loading branch information
awaelchli committed Apr 29, 2024
1 parent d194976 commit 1c7d7c8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/tests_pytorch/accelerators/test_xla.py
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ def test_resume_training_on_cpu(tmp_path):
"""Checks if training can be resumed from a saved checkpoint on CPU."""
# Train a model on TPU
model = BoringModel()
trainer = Trainer(max_epochs=1, accelerator="tpu", devices="auto")
trainer = Trainer(max_epochs=1, accelerator="tpu", devices="auto", default_root_dir=tmp_path)
trainer.fit(model)

if trainer.world_size != trainer.num_devices:
Expand Down

0 comments on commit 1c7d7c8

Please sign in to comment.