Skip to content

Commit 31a4b6d

Browse files
committed
xfail quantization test
1 parent daaff61 commit 31a4b6d

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

tests/callbacks/test_quantization.py

+3
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@
2222
from pytorch_lightning import seed_everything, Trainer
2323
from pytorch_lightning.callbacks import QuantizationAwareTraining
2424
from pytorch_lightning.utilities.exceptions import MisconfigurationException
25+
from pytorch_lightning.utilities.imports import _TORCH_GREATER_EQUAL_1_11
2526
from pytorch_lightning.utilities.memory import get_model_size_mb
2627
from tests.helpers.boring_model import RandomDataset
2728
from tests.helpers.datamodules import RegressDataModule
@@ -35,6 +36,8 @@
3536
@RunIf(quantization=True)
3637
def test_quantization(tmpdir, observe: str, fuse: bool, convert: bool):
3738
"""Parity test for quant model."""
39+
pytest.mark.xfail(observe == "average", not fuse, _TORCH_GREATER_EQUAL_1_11, reason="TODO: flakiness in GPU CI")
40+
3841
seed_everything(42)
3942
dm = RegressDataModule()
4043
accelerator = "gpu" if torch.cuda.is_available() else "cpu"

0 commit comments

Comments
 (0)