Skip to content

Commit

Permalink
Include Pytorch model files in the zip file filter logic
Browse files Browse the repository at this point in the history
  • Loading branch information
smlindauer committed Jan 31, 2024
1 parent d4c013c commit eb4e267
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/sasctl/pzmm/zip_model.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,9 @@ def _filter_files(file_dir: Union[str, Path], is_viya4: Optional[bool] = False)
file_names.extend(sorted(Path(file_dir).glob("*.pickle")))
# Include H2O.ai MOJO files
file_names.extend(sorted(Path(file_dir).glob("*.mojo")))
# Include Pytorch.ai files
file_names.extend(sorted(Path(file_dir).glob("*.pth")))
file_names.extend(sorted(Path(file_dir).glob("*.pt")))
if file_names:
return file_names
else:
Expand Down

0 comments on commit eb4e267

Please sign in to comment.