8000 Update test/test_xpu.py · pytorch/pytorch@0f9efdc · GitHub
[go: up one dir, main page]

Skip to content

Commit 0f9efdc

Browse files
pkourdisguangyey
authored andcommitted
Update test/test_xpu.py
Co-authored-by: Yu, Guangye <106960996+guangyey@users.noreply.github.com>
1 parent a67e805 commit 0f9efdc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/test_xpu.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@
3232
class TestXpuConfig(TestCase):
3333
def test_xpu_record(self):
3434
config = torch.__config__.show()
35-
assert 'USE_XPU=0' in config or 'USE_XPU=1' in config
35+
assert f'USE_XPU={int(torch.xpu._is_compiled())}` in config
3636

3737
def test_xccl_record(self):
3838
config = torch.__config__.show()

0 commit comments

Comments
 (0)
0