Skip to content

Commit df73d3e

Browse files
authored
Fixed a bug in test_fw_bit_quant (#1675)
1 parent a23026c commit df73d3e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/test_functional.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -172,7 +172,7 @@ def test_blockwise_cpu_large(self, hidden, blocksize):
172172
@pytest.mark.parametrize("bits", range(2, 9), ids=id_formatter("bits"))
173173
@pytest.mark.parametrize("method", ["linear", "fp8", "dynamic"])
174174
def test_few_bit_quant(self, device, bits, method):
175-
if device in ("cpu", "xpu") and bits != 8 and (F.ipex_cpu or F.ipex_xpu):
175+
if bits != 8 and (device == "cpu" or (device == "xpu" and F.ipex_xpu)):
176176
pytest.skip("CPU/XPU implementation only supports 8 bits")
177177

178178
abserrs = []

0 commit comments

Comments
 (0)