Skip to content

Commit ae049df

Browse files
committed
write_file_metadata_json - added optional parameter for pytorch models
1 parent 1cbbdc0 commit ae049df

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/sasctl/pzmm/write_json_files.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -510,6 +510,7 @@ def write_file_metadata_json(
510510
dict_list.append({"role": "scoreResource", "name": model_prefix + ".mojo"})
511511
elif is_tf_keras_model:
512512
dict_list.append({"role": "scoreResource", "name": model_prefix + ".h5"})
513+
#conditions added for pytorch.
513514
elif is_pytorch_model:
514515
dict_list.append(({"role": "scoreResource", "name": model_prefix + ".pth"}))
515516
else:

0 commit comments

Comments
 (0)