We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 91cb46e commit 7808297Copy full SHA for 7808297
test/quantization/quantize_/workflows/int4/test_int4_plain_int32_tensor.py
@@ -100,8 +100,8 @@ def test_activation_prescaling(self):
100
101
@unittest.skipIf(not torch_version_at_least("2.7.1"), "Need pytorch 2.7.1+")
102
@unittest.skipIf(
103
- torch.accelerator.current_accelerator().type == "npu"
104
- and torch.accelerator.is_available(),
+ torch.accelerator.current_accelerator().type != "npu"
+ or not torch.accelerator.is_available(),
105
"NPU not available",
106
)
107
class Int4PlainInt32TensorNPU(TestCase):
0 commit comments