Files
light-the-torch/tests/unit/conftest.py
Philip Meier 73e8fc80fe Support multiple CUDA versions (#33)
* Support multiple CUDA versions

* cleanup

* exclude specific windows combinations from tests

* fix cpu backend ordering

* prioritize backend over version

* fix docstring
2021-06-29 17:22:05 +02:00

18 lines
332 B
Python

import pytest
import light_the_torch.computation_backend as cb
class GenericComputationBackend(cb.ComputationBackend):
@property
def local_specifier(self):
return "generic"
def __lt__(self, other):
return NotImplemented
@pytest.fixture
def generic_backend():
return GenericComputationBackend()