Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: fix PyTorch model extension in simplify (#1596)
<!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit - **Bug Fixes** - Improved model file search logic to dynamically construct file patterns, ensuring better compatibility with different model suffixes. - Added an assertion to ensure at least one model file is found, providing clearer error messaging when no models are present. - **Tests** - Enhanced test setup by generating fake model files, improving robustness and reliability of tests. <!-- end of auto-generated comment: release notes by coderabbit.ai --> --------- Signed-off-by: Jinzhe Zeng <[email protected]> Co-authored-by: Han Wang <[email protected]>
- Loading branch information