Skip to content

Commit

Permalink
add import
Browse files Browse the repository at this point in the history
  • Loading branch information
anjali411 committed Aug 6, 2020
1 parent 7f98428 commit 4509fe8
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import torch

from torchaudio_unittest import common_utils
from .torchscript_consistency_impl import Functional, Transforms
from .torchscript_consistency_impl import Functional, Transforms, TransformsWithComplexDtypes


@common_utils.skipIfNoCuda
Expand All @@ -27,6 +27,7 @@ class TestTransformsFloat64(Transforms, common_utils.PytorchTestCase):
dtype = torch.float64
device = torch.device('cuda')


@common_utils.skipIfNoCuda
class TestTransformsCFloat(TransformsWithComplexDtypes, common_utils.PytorchTestCase):
dtype = torch.cfloat
Expand Down
1 change: 1 addition & 0 deletions test/torchaudio_unittest/torchscript_consistency_impl.py
Original file line number Diff line number Diff line change
Expand Up @@ -550,6 +550,7 @@ def test_TimeStretch(self):
tensor,
)


class Transforms(common_utils.TestBaseMixin):
"""Implements test for Transforms that are performed for different devices"""
def _assert_consistency(self, transform, tensor):
Expand Down

0 comments on commit 4509fe8

Please sign in to comment.