Skip to content

Commit 61de232

Browse files
committed
test_build_spec with more models
1 parent 54931e4 commit 61de232

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

tests/build_spec/test_build_spec.py

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -57,18 +57,18 @@ def _test_build_spec(path, weight_type, tensorflow_version=None):
5757

5858

5959
@pytest.mark.skipif(pytest.skip_torch, reason="requires torch")
60-
def test_build_spec_pytorch(unet2d_nuclei_broad_model):
61-
_test_build_spec(unet2d_nuclei_broad_model, "pytorch_state_dict")
60+
def test_build_spec_pytorch(any_torch_model):
61+
_test_build_spec(any_torch_model, "pytorch_state_dict")
6262

6363

6464
@pytest.mark.skipif(pytest.skip_torch, reason="requires torch")
65-
def test_build_spec_onnx(unet2d_nuclei_broad_model):
66-
_test_build_spec(unet2d_nuclei_broad_model, "onnx")
65+
def test_build_spec_torchscript(any_torchscript_model):
66+
_test_build_spec(any_torchscript_model, "pytorch_script")
6767

6868

69-
@pytest.mark.skipif(pytest.skip_torch, reason="requires torch")
70-
def test_build_spec_torchscript(unet2d_nuclei_broad_model):
71-
_test_build_spec(unet2d_nuclei_broad_model, "pytorch_script")
69+
@pytest.mark.skipif(pytest.skip_onnx, reason="requires onnx")
70+
def test_build_spec_onnx(any_onnx_model):
71+
_test_build_spec(any_onnx_model, "onnx")
7272

7373

7474
@pytest.mark.skipif(pytest.skip_tensorflow or pytest.tf_major_version != 1, reason="requires tensorflow 1")

0 commit comments

Comments
 (0)