-
Notifications
You must be signed in to change notification settings - Fork 3.8k
Transpose scalar shape inference #5204
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
jcwchen
merged 16 commits into
onnx:main
from
adityagoel4512:transpose_scalar_shape_inference
May 11, 2023
Merged
Transpose scalar shape inference #5204
jcwchen
merged 16 commits into
onnx:main
from
adityagoel4512:transpose_scalar_shape_inference
May 11, 2023
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
8f24c5a to
a0106ea
Compare
Signed-off-by: Bryan Anderson <[email protected]> Signed-off-by: Aditya Goel <[email protected]>
* Add function inliner part 1 Signed-off-by: Ganesan Ramalingam <[email protected]> * Inliner for model-local functions Signed-off-by: Ganesan Ramalingam <[email protected]> * Minor fixes Signed-off-by: Ganesan Ramalingam <[email protected]> * Export inliner to python Signed-off-by: Ganesan Ramalingam <[email protected]> * Fix emptied files Signed-off-by: Ganesan Ramalingam <[email protected]> * remove constexpr Signed-off-by: Ganesan Ramalingam <[email protected]> * Replace move by copy Signed-off-by: Ganesan Ramalingam <[email protected]> * Run formatter Signed-off-by: Ganesan Ramalingam <[email protected]> * Format file Signed-off-by: Ganesan Ramalingam <[email protected]> * Check names are unique Signed-off-by: Ganesan Ramalingam <[email protected]> * naming conventions Signed-off-by: Ganesan Ramalingam <[email protected]> * Test for opset mistmatch Signed-off-by: Ganesan Ramalingam <[email protected]> * Remove move Signed-off-by: Ganesan Ramalingam <[email protected]> * Address PR feedback Signed-off-by: Ganesan Ramalingam <[email protected]> * Add testcase with two calls to same function Signed-off-by: Ganesan Ramalingam <[email protected]> * Comment debugging code Signed-off-by: Ganesan Ramalingam <[email protected]> * Add comments about renaming Signed-off-by: Ganesan Ramalingam <[email protected]> * Run formatter Signed-off-by: Ganesan Ramalingam <[email protected]> --------- Signed-off-by: Ganesan Ramalingam <[email protected]> Signed-off-by: Aditya Goel <[email protected]>
Signed-off-by: jbachurski <[email protected]> Co-authored-by: G. Ramalingam <[email protected]> Signed-off-by: Aditya Goel <[email protected]>
Signed-off-by: Aditya Goel <[email protected]>
Signed-off-by: Aditya Goel <[email protected]>
Signed-off-by: Aditya Goel <[email protected]>
Signed-off-by: ideal <[email protected]> Signed-off-by: Aditya Goel <[email protected]>
1d8dc45 to
d5fe868
Compare
gramalingam
reviewed
May 10, 2023
Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Signed-off-by: Aditya Goel <[email protected]>
Signed-off-by: Aditya Goel <[email protected]>
…onnx#5210) Signed-off-by: Chun-Wei Chen <[email protected]> Signed-off-by: Aditya Goel <[email protected]>
…023 (onnx#5208) Signed-off-by: Chun-Wei Chen <[email protected]> Signed-off-by: Aditya Goel <[email protected]>
Signed-off-by: ideal <[email protected]> Signed-off-by: Aditya Goel <[email protected]>
…nnx#5169) Signed-off-by: Ganesan Ramalingam <[email protected]> Signed-off-by: Aditya Goel <[email protected]>
abbf137 to
13dc5b1
Compare
gramalingam
approved these changes
May 10, 2023
jcwchen
approved these changes
May 11, 2023
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for fixing this!
adityagoel4512
added a commit
to adityagoel4512/onnx
that referenced
this pull request
Jul 28, 2023
Signed-off-by: Bryan Anderson <[email protected]> Signed-off-by: Aditya Goel <[email protected]> Signed-off-by: Ganesan Ramalingam <[email protected]> Signed-off-by: jbachurski <[email protected]> Signed-off-by: ideal <[email protected]> Signed-off-by: dependabot[bot] <[email protected]> Signed-off-by: Chun-Wei Chen <[email protected]> Co-authored-by: Bryan Anderson <[email protected]> Co-authored-by: G. Ramalingam <[email protected]> Co-authored-by: Jakub Bachurski <[email protected]> Co-authored-by: ideal <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Chun-Wei Chen <[email protected]> Signed-off-by: Aditya Goel <[email protected]>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description
Shape inference when transposing scalars.
Motivation and Context
Currently when transposing a scalar, the output shape is left unset leading to Shape Inference errors. This PR makes sure this doesn't happen by ensuring the output type has a 0 dimensional shape for scalar inputs.