Skip to content

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

Merged
gramalingam merged 1 commit intoonnx:masterfrom
hariharans29:rangeFix
Sep 5, 2019
Merged

Remove type info for loop variadic input in Loop op used to compose the Range op#2287
gramalingam merged 1 commit intoonnx:masterfrom
hariharans29:rangeFix

Conversation

@hariharans29
Copy link
Copy Markdown
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.

3 participants