Skip to content

Handle unused function inputs #15130

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Mar 23, 2023
Merged

Handle unused function inputs #15130

merged 2 commits into from
Mar 23, 2023

Conversation

gramalingam
Copy link
Contributor

@gramalingam gramalingam commented Mar 20, 2023

Description

Fix issue relating to unused inputs of model-local functions. ORT creates a schema for all such functions. The creation of this schema does not handle unused function-inputs. The schema-creation relies on the use of the function-inputs to infer type-constraints for the input, and the code ends up creating an erroneous input-descriptor when there is no use of the function-input.

The fix is to create an input with the given name, with a type-constraint that allows all types.

Motivation and Context

Fix #15046

Fix microsoft/onnxscript#524

Signed-off-by: Ganesan Ramalingam <[email protected]>
skottmckay
skottmckay previously approved these changes Mar 21, 2023
@justinchuby justinchuby merged commit efa1262 into main Mar 23, 2023
@justinchuby justinchuby deleted the rama/create_schema_bug_fix branch March 23, 2023 15:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
core runtime issues related to core runtime
Projects
None yet
Development

Successfully merging this pull request may close these issues.

ORT fails on unused input in a function ORT fails on unused input in a function
3 participants