--- a +++ b/tests/pipelines/trainable/conftest.py @@ -0,0 +1,10 @@ +import pytest + +try: + import torch.nn +except ImportError: + torch = None + +if torch is None: + pytest.skip("torch not installed", allow_module_level=True) +pytest.importorskip("rich")