@@ -28,10 +28,10 @@ def _test_build_spec(
2828 model_kwargs = None if weight_spec .kwargs is missing else weight_spec .kwargs
2929 architecture = str (weight_spec .architecture )
3030 weight_type_ = None # the weight type can be auto-detected
31- elif weight_type == "pytorch_script " :
31+ elif weight_type == "torchscript " :
3232 architecture = None
3333 model_kwargs = None
34- weight_type_ = "pytorch_script " # the weight type CANNOT be auto-detcted
34+ weight_type_ = "torchscript " # the weight type CANNOT be auto-detcted
3535 else :
3636 architecture = None
3737 model_kwargs = None
@@ -109,7 +109,7 @@ def test_build_spec_implicit_output_shape(unet2d_nuclei_broad_model, tmp_path):
109109
110110
111111def test_build_spec_torchscript (any_torchscript_model , tmp_path ):
112- _test_build_spec (any_torchscript_model , tmp_path / "model.zip" , "pytorch_script " )
112+ _test_build_spec (any_torchscript_model , tmp_path / "model.zip" , "torchscript " )
113113
114114
115115def test_build_spec_onnx (any_onnx_model , tmp_path ):
@@ -133,7 +133,7 @@ def test_build_spec_tfjs(any_tensorflow_js_model, tmp_path):
133133
134134
135135def test_build_spec_deepimagej (unet2d_nuclei_broad_model , tmp_path ):
136- _test_build_spec (unet2d_nuclei_broad_model , tmp_path / "model.zip" , "pytorch_script " , add_deepimagej_config = True )
136+ _test_build_spec (unet2d_nuclei_broad_model , tmp_path / "model.zip" , "torchscript " , add_deepimagej_config = True )
137137
138138
139139def test_build_spec_deepimagej_keras (unet2d_keras , tmp_path ):
0 commit comments