🐍 Geometric Computer Vision Library for Spatial AI
Python artificial-intelligencecomputer-visiondeep-learninghacktoberfestimage-processingmachine-learningneural-networkpythonpytorchroboticsspatial-ai
skip dynamo test for py311 torch 2.0.x (#2621)
João Gustavo A. Amorim4e377d74a9c6
diff --git a/conftest.py b/conftest.pyindex 4b8fe0dd1..b79d71fb3 100644--- a/conftest.py+++ b/conftest.py@@ -7,6 +7,7 @@ import pytestimport torchimport kornia+from kornia.utils._compat import torch_versiondef get_test_devices() -> Dict[str, torch.device]:@@ -67,8 +68,9 @@ def dtype(dtype_name) -> torch.dtype:@pytest.fixture(scope='session')def torch_optimizer():if hasattr(torch, 'compile') and sys.platform == "linux":- # torch.set_float32_matmul_precision('high')- return torch.compile+ if not (sys.version_info[:2] == (3, 11) and torch_version() in {'2.0.0', '2.0.1'}):+ # torch compile just have support for python 3.11 after torch 2.1.0+ return torch.compilepytest.skip(f"skipped because {torch.__version__} not have `compile` available! Failed to setup dynamo.")