-
Notifications
You must be signed in to change notification settings - Fork 26.3k
Closed
Labels
module: onnxRelated to torch.onnxRelated to torch.onnxonnx-triagedtriaged by ONNX teamtriaged by ONNX teamtriagedThis issue has been looked at a team member, and triaged and prioritized into an appropriate moduleThis issue has been looked at a team member, and triaged and prioritized into an appropriate module
Description
🐛 Describe the bug
| if len(input_names) != len(sig.parameters): |
The function was meant to align dynamic_shapes keys to model signature, since torch.export.export does not support customized input_names. However, model.signature could be the same length as input_names accidentally. For example, input_names includes all kv_cache names, and LLM models usually come with a lot of Optional inputs, while kv_cache names only counts one because it's a list.
Versions
Nightly
Metadata
Metadata
Assignees
Labels
module: onnxRelated to torch.onnxRelated to torch.onnxonnx-triagedtriaged by ONNX teamtriaged by ONNX teamtriagedThis issue has been looked at a team member, and triaged and prioritized into an appropriate moduleThis issue has been looked at a team member, and triaged and prioritized into an appropriate module