test_info.py 344 Bytes
Newer Older
1
2
3
import torch


limm's avatar
limm committed
4
class TestInfo(object):
5
6
7
8
9
10
11
12
13

    def test_info(self):
        if not torch.cuda.is_available():
            return
        from mmcv.ops import get_compiler_version, get_compiling_cuda_version
        cv = get_compiler_version()
        ccv = get_compiling_cuda_version()
        assert cv is not None
        assert ccv is not None