Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add subclass in model test classes #727

Merged
merged 3 commits into from
Jun 23, 2020
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
6 changes: 4 additions & 2 deletions test/test_models.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
import torch
from torchaudio.models import Wav2Letter, _MelResNet

from . import common_utils

class TestWav2Letter:

class TestWav2Letter(common_utils.TorchaudioTestCase):

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


class TestMelResNet:
class TestMelResNet(common_utils.TorchaudioTestCase):

def test_waveform(self):

Expand Down