[cad161]: / tests / pipelines / trainable / conftest.py

Download this file

11 lines (8 with data), 188 Bytes

 1
 2
 3
 4
 5
 6
 7
 8
 9
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")