Skip to content

Commit 6a4100b

Browse files
committed
move pl/utilities/xla_device.py to lite/utilities/xla_device.py (#14514)
1 parent b19b155 commit 6a4100b

File tree

5 files changed

+2
-2
lines changed

5 files changed

+2
-2
lines changed

src/lightning_lite/utilities/__init__.py

Whitespace-only changes.

src/pytorch_lightning/utilities/imports.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,7 @@ def __repr__(self) -> str:
147147
_XLA_AVAILABLE: bool = _package_available("torch_xla")
148148

149149

150-
from pytorch_lightning.utilities.xla_device import XLADeviceUtils # noqa: E402
150+
from lightning_lite.utilities.xla_device import XLADeviceUtils # noqa: E402
151151

152152
_TPU_AVAILABLE = XLADeviceUtils.tpu_device_exists()
153153

tests/tests_lite/utilities/__init__.py

Whitespace-only changes.

tests/tests_pytorch/utilities/test_xla_device_utils.py renamed to tests/tests_lite/utilities/test_xla_device_utils.py

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

1717
import pytest
1818

19-
import pytorch_lightning.utilities.xla_device as xla_utils
19+
import lightning_lite.utilities.xla_device as xla_utils
2020
from pytorch_lightning.utilities import _XLA_AVAILABLE
2121
from tests_pytorch.helpers.runif import RunIf
2222

0 commit comments

Comments
 (0)