Skip to content

Commit

Permalink
[feat] adding model_predict_test
Browse files Browse the repository at this point in the history
  • Loading branch information
ctr26 committed Aug 15, 2024
1 parent 16f431d commit 1552a87
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions bioimage_embed/shapes/tests/test_lightning.py
Original file line number Diff line number Diff line change
Expand Up @@ -79,3 +79,9 @@ def test_model(trainer, lit_model, dataloader):

def test_model_fit(trainer, lit_model, dataloader):
return trainer.fit(lit_model, dataloader)


def test_model_predict(trainer, lit_model, dataloader):
y = trainer.predict(lit_model, dataloader)
# TODO Add checks for shape_loss and potentially other losses (contrastive loss)
return y

0 comments on commit 1552a87

Please sign in to comment.