torchscript_consistency_cuda_test.py 746 Bytes
Newer Older
1
2
3
import torch

from . import common_utils
4
from .torchscript_consistency_impl import Functional, Transforms
5
6


7
@common_utils.skipIfNoCuda
moto's avatar
moto committed
8
class TestFunctionalFloat32(Functional, common_utils.PytorchTestCase):
9
10
11
12
13
    dtype = torch.float32
    device = torch.device('cuda')


@common_utils.skipIfNoCuda
moto's avatar
moto committed
14
class TestFunctionalFloat64(Functional, common_utils.PytorchTestCase):
15
16
17
18
19
    dtype = torch.float64
    device = torch.device('cuda')


@common_utils.skipIfNoCuda
moto's avatar
moto committed
20
class TestTransformsFloat32(Transforms, common_utils.PytorchTestCase):
21
22
23
24
25
    dtype = torch.float32
    device = torch.device('cuda')


@common_utils.skipIfNoCuda
moto's avatar
moto committed
26
class TestTransformsFloat64(Transforms, common_utils.PytorchTestCase):
27
28
    dtype = torch.float64
    device = torch.device('cuda')