Skip to content

Commit 77868bc

Browse files
committed
skip ut if no xpu
1 parent b24ff1a commit 77868bc

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

test/quantization/quantize_/workflows/int4/test_int4_plain_int32_tensor.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@ def get_config(group_size):
3434

3535

3636
@unittest.skipIf(not torch_version_at_least("2.8.0"), "Need pytorch 2.8+")
37+
@unittest.skipIf(not torch.xpu.is_available(), "CUDA not available")
3738
class Int4PlainInt32Tensor(TestCase):
3839
@parametrize(
3940
"sizes",

0 commit comments

Comments
 (0)