Skip to content

Commit bfb8c62

Browse files
committed
fix codefactor issues
1 parent 2b256c3 commit bfb8c62

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

pytorch_lightning/utilities/xla_device_utils.py

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -34,17 +34,13 @@ def wrapper(*args, **kwargs):
3434
def fetch_xla_device_type(device):
3535
if xm is not None:
3636
return xm.xla_device_hw(device)
37-
else:
38-
return None
3937

4038

4139
def is_device_tpu():
4240
if xm is not None:
4341
device = xm.xla_device()
4442
device_type = fetch_xla_device_type(device)
4543
return device_type == "TPU"
46-
else:
47-
return False
4844

4945

5046
def tpu_device_exists():

0 commit comments

Comments
 (0)