Skip to content

Commit

Permalink
write_file_metadata_json - added optional parameter for pytorch models
Browse files Browse the repository at this point in the history
  • Loading branch information
namera9 committed Jan 23, 2024
1 parent 1cbbdc0 commit ae049df
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/sasctl/pzmm/write_json_files.py
Original file line number Diff line number Diff line change
Expand Up @@ -510,6 +510,7 @@ def write_file_metadata_json(
dict_list.append({"role": "scoreResource", "name": model_prefix + ".mojo"})
elif is_tf_keras_model:
dict_list.append({"role": "scoreResource", "name": model_prefix + ".h5"})
#conditions added for pytorch.
elif is_pytorch_model:
dict_list.append(({"role": "scoreResource", "name": model_prefix + ".pth"}))
else:
Expand Down

0 comments on commit ae049df

Please sign in to comment.