Skip to content
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

Remove type info for loop variadic input in Loop op used to compose the Range op #2287

Merged
merged 1 commit into from
Sep 5, 2019

Conversation

hariharans29
Copy link
Contributor

Since "Range" operator is a polymorphic operator in that it supports multiple types, we are unable to bind a specific type to the loop variadic input of the 'Loop' operator used in the composition of the 'Range' operator. Since we didn't have a type bound to it, it was left "undefined" which is not acceptable according to IR. But ONNX model checker accepts missing type altogether for subgraph inputs indicating that ONNX accepts this. Hence, we remove the type altogether for the loop variadic input while preserving type information for the other 2 inputs (iteration count and boolean condition) since we know the element types for these. The makes the resultant "test models" for the 'Range' op valid as per spec (as opposed to now - wherein they are invalid).

@hariharans29 hariharans29 requested a review from a team as a code owner September 5, 2019 19:58
@gramalingam gramalingam merged commit 1f350f2 into onnx:master Sep 5, 2019
@prasanthpul prasanthpul added this to the 1.6 milestone Sep 6, 2019
jcwchen pushed a commit to jcwchen/onnx that referenced this pull request Sep 23, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants