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

[Shape inference] Always set the output of Shape to be rank-1 #3394

Merged
merged 2 commits into from
Apr 4, 2021

Conversation

mrry
Copy link
Contributor

@mrry mrry commented Apr 2, 2021

Even when the input shape is unavailable, the output of Shape will always be a rank-1 vector.

@mrry mrry requested a review from a team as a code owner April 2, 2021 23:04
Even when the input shape is unavailable, the output of Shape will always be a rank-1 vector.

Signed-off-by: Derek Murray <demurra@microsoft.com>
@mrry mrry changed the title [Shape inference] Always set the output of Shape to have rank-1. [Shape inference] Always set the output of Shape to be rank-1 Apr 2, 2021
@gramalingam
Copy link
Contributor

Thanks! May help to apply same fix to older version of Shape (in old.cc) also.

@CLAassistant
Copy link

CLAassistant commented Apr 2, 2021

CLA assistant check
All committers have signed the CLA.

Signed-off-by: Derek Murray <demurra@microsoft.com>
@mrry
Copy link
Contributor Author

mrry commented Apr 2, 2021

Thanks @gramalingam... good idea, done!

@gramalingam gramalingam merged commit de46066 into onnx:master Apr 4, 2021
@askhade askhade added this to the 1.9 milestone Apr 5, 2021
jcwchen pushed a commit to jcwchen/onnx that referenced this pull request Apr 5, 2021
)

* [Shape inference] Always set the output of Shape to have rank-1.

Even when the input shape is unavailable, the output of Shape will always be a rank-1 vector.

Signed-off-by: Derek Murray <demurra@microsoft.com>

* Apply fix to Shape-1 as well.

Signed-off-by: Derek Murray <demurra@microsoft.com>
jcwchen pushed a commit to jcwchen/onnx that referenced this pull request Apr 5, 2021
)

* [Shape inference] Always set the output of Shape to have rank-1.

Even when the input shape is unavailable, the output of Shape will always be a rank-1 vector.

Signed-off-by: Derek Murray <demurra@microsoft.com>

* Apply fix to Shape-1 as well.

Signed-off-by: Derek Murray <demurra@microsoft.com>
Signed-off-by: Chun-Wei Chen <jacky82226@gmail.com>
jcwchen added a commit that referenced this pull request Apr 5, 2021
* [Shape inference] Always set the output of Shape to be rank-1 (#3394)

* [Shape inference] Always set the output of Shape to have rank-1.

Even when the input shape is unavailable, the output of Shape will always be a rank-1 vector.

Signed-off-by: Derek Murray <demurra@microsoft.com>

* Apply fix to Shape-1 as well.

Signed-off-by: Derek Murray <demurra@microsoft.com>
Signed-off-by: Chun-Wei Chen <jacky82226@gmail.com>

* Implement NonZero shape inference (#3364)

* Implement NonZero shape inference

Signed-off-by: impactaky <impactaky@users.noreply.github.com>

* Add shape inference code to NonZero-9

Signed-off-by: impactaky <impactaky@users.noreply.github.com>

* Add type annotation

Signed-off-by: impactaky <impactaky@users.noreply.github.com>

Co-authored-by: impactaky <impactaky@users.noreply.github.com>
Co-authored-by: Ashwini Khade <askhade@microsoft.com>
Co-authored-by: Michał Karzyński <4430709+postrational@users.noreply.github.com>
Signed-off-by: Chun-Wei Chen <jacky82226@gmail.com>

* bump version number

Signed-off-by: Chun-Wei Chen <jacky82226@gmail.com>

Co-authored-by: Derek Murray <derek.murray@gmail.com>
Co-authored-by: impactaky <37619203+impactaky@users.noreply.github.com>
Co-authored-by: impactaky <impactaky@users.noreply.github.com>
Co-authored-by: Ashwini Khade <askhade@microsoft.com>
Co-authored-by: Michał Karzyński <4430709+postrational@users.noreply.github.com>
jcwchen added a commit to jcwchen/onnx that referenced this pull request Jun 30, 2021
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

5 participants