-
Notifications
You must be signed in to change notification settings - Fork 522
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
fix(ONNX): avoids resizing unsupported dimensions #3945
base: main
Are you sure you want to change the base?
fix(ONNX): avoids resizing unsupported dimensions #3945
Conversation
6baa8d5
to
ab7e021
Compare
ab7e021
to
7aec80b
Compare
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.
I think the main structural question is about the need for adding the BaseTensorType
method. If it were useful elsewhere (I have some doubts, since we would need to know too much about the two tensor shapes prior to using it- namely that they are present, and they have the same rank), I would consider keeping it; however, the code is simplified here by not using it, and I suspect that the same would be true in other circumstances where it might be used.
7aec80b
to
a20ee29
Compare
a20ee29
to
574f4fe
Compare
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.
Sorry for the misdirect earlier, we need to perform the runtime asserts on the scales or sizes values instead of sizes, since we will not have access to the correct output sizes ahead of time.
574f4fe
to
cb371ea
Compare
I think the renaming of |
05ea165
to
cb20894
Compare
8a78147
to
54cf76e
Compare
Okay, @zjgarvey, I think we're in business! Got green on the CI a few hours ago. Just wrapped up self-review. I'm guessing now we'll:
I kept the commits atomic and ordered such that it's easier to propagate changes to the head of the branch in case an earlier commit needs to be inserted/tweaked/excised. Let me know what you think! |
Nice! At least for now, please exclude any commits which involve style changes not directly related to the fix content. E.g. widespread enforcement of naming preferences like the |
54cf76e
to
052404a
Compare
… transforms filter
…n transforms filter
…n `getValueList`
- Before: - "get": implies retrieval of some private property - "Value": restatement of the return type `Value` - "List": assumed result of casting the returned instance - After: - "create": contextualizes the need to pass in `rewriter` - "Scalar": contextualizes the opaque return type - "Sublist": the relationship between the first parameter and the returned result
- helper isn't concerned with the role of the tensor at the call site, only its shape
- easier to read - allows for cleaner diffs if they ever change
a3daf2a
to
73fa3b2
Compare
Based on #3975