kaldi_compatibility_cuda_test.py 385 Bytes
Newer Older
1
2
import torch

3
4
from . import common_utils
from .kaldi_compatibility_impl import Kaldi
5
6


7
@common_utils.skipIfNoCuda
moto's avatar
moto committed
8
class TestKaldiFloat32(Kaldi, 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 TestKaldiFloat64(Kaldi, common_utils.PytorchTestCase):
15
16
    dtype = torch.float64
    device = torch.device('cuda')