Skip to content

Commit 46a33b1

Browse files
committed
fix check for disc backend
1 parent 7fd5920 commit 46a33b1

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

test/test_utils.py

+1-2
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,7 @@
1313
import torch_xla.core.xla_model as xm
1414
import torch_xla.utils.utils as xu
1515

16-
_IS_DISC_BACKEND = os.environ.get(
17-
'DISC_DEVICE', '0').upper() in ['ON', '1', 'YES', 'TRUE', 'Y']
16+
_IS_DISC_BACKEND = 'DISC_DEVICE' in os.environ
1817

1918

2019
def is_disc_backend():

0 commit comments

Comments
 (0)