Skip to content

Commit

Permalink
Added model instantiation tests for narrowband signals. (TorchDSP#120)
Browse files Browse the repository at this point in the history
  • Loading branch information
gvanhoy authored May 26, 2023
1 parent f097b01 commit ef12218
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions tests/test_models.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
from torchsig.models.iq_models.efficientnet.efficientnet import *
from torchsig.models.iq_models.xcit.xcit import *
import pytest


@pytest.mark.parametrize("version", ("b0", "b2", "b4"))
def test_can_instantiate_efficientnet(version: str):
if version == "b0":
model = efficientnet_b0(pretrained=False)
if version == "b2":
model = efficientnet_b2(pretrained=False)
if version == "b4":
model = efficientnet_b4(pretrained=False)


@pytest.mark.parametrize("version", ("nano", "tiny"))
def test_can_instantiate_xcit(version: str):
if version == "nano":
model = xcit_nano(pretrained=False)
if version == "tiny":
model = xcit_tiny12(pretrained=False)

0 comments on commit ef12218

Please sign in to comment.