Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Provide kwargs to remove_shared_initializers (microsoft#17539)
### Description Fixes a bug in `get_shared_initializers` where `signature_cache1, signature_cache2` are passed as positional arguments to `remove_shared_initializers` but their positions don't match the function signature. So `signature_cache1` is passed to `min_elements` and causes comparison error at line 907. Pass the arguments as kwargs so that it doesn't rely on their positions. ### Motivation and Context <!-- - Why is this change required? What problem does it solve? - If it fixes an open issue, please link to the issue here. --> Fixes the bug described above.
- Loading branch information