Skip to content

Commit

Permalink
fix idx
Browse files Browse the repository at this point in the history
  • Loading branch information
Borda committed Jul 22, 2020
1 parent 50c3b22 commit 7fd43e8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/models/test_tpu.py
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,7 @@ def test_model_16bit_tpu_index_7(tmpdir):
tpu_cores=[7],
)
trainer.fit(model)
assert torch_xla._XLAC._xla_get_default_device() == 'xla:8'
assert torch_xla._XLAC._xla_get_default_device() == 'xla:7'
assert os.environ.get('XLA_USE_BF16') == str(1), "XLA_USE_BF16 was not set in environment variables"


Expand Down Expand Up @@ -216,7 +216,7 @@ def test_early_stop_checkpoints_on_tpu(tmpdir):
tpu_cores=[8],
)
trainer.fit(model)
assert torch_xla._XLAC._xla_get_default_device() == 'xla:8'
assert torch_xla._XLAC._xla_get_default_device() == 'xla:7'


@pytest.mark.skipif(not TPU_AVAILABLE, reason="test requires TPU machine")
Expand Down

0 comments on commit 7fd43e8

Please sign in to comment.