Skip to content

Commit

Permalink
update test method
Browse files Browse the repository at this point in the history
  • Loading branch information
Ji Chen committed Jun 18, 2020
1 parent 7e1d516 commit a55646b
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions test/test_models.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,10 @@
import torch
from torchaudio.models import Wav2Letter, _MelResNet

from . import common_utils

class TestWav2Letter(unittest.TestCase):

class TestWav2Letter(common_utils.TorchaudioTestCase):

def test_waveform(self):
batch_size = 2
Expand Down Expand Up @@ -33,7 +35,7 @@ def test_mfcc(self):
assert out.size() == (batch_size, num_classes, 2)


class TestMelResNet(unittest.TestCase):
class TestMelResNet(common_utils.TorchaudioTestCase):

def test_waveform(self):

Expand Down

0 comments on commit a55646b

Please sign in to comment.