Skip to content

Commit

Permalink
Add model initialization tests
Browse files Browse the repository at this point in the history
  • Loading branch information
atong01 committed Nov 23, 2023
1 parent 91c5dfd commit 1b74617
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions tests/test_models.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
import pytest
from torchcfm.models import MLP
from torchcfm.models.unet import UNetModel


def test_initialize_models():
model = UNetModel(
dim=(1, 28, 28),
num_channels=32,
num_res_blocks=1,
num_classes=10,
class_cond=True,
)
model = MLP(dim=2, time_varying=True, w=64)

0 comments on commit 1b74617

Please sign in to comment.