-
Notifications
You must be signed in to change notification settings - Fork 338
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
failure of ShapeInference pass #224
Comments
I agree with your suggestions. It would be more flexible. Only a minor comment that verifying Attributes should be done in another pass outside or before ShapeInference. |
Could we put rewriting rules for ScalerOp to the Decomposing Pass: https://github.com/onnx/onnx-mlir/blob/master/src/Transform/ONNX/Decompose.td? By that way, we don't need to implement ShapeInference for ScalerOp since the Decomposing Pass is called before ShapeInference. |
Yes, we can try Decompose.td. |
Any updates on this issue? @chentong319 @tungld |
We are taking a progressive way to change shape inference. Some constraints have to be removed when the support for dynamic shape is added. |
Awesome, sounds like this is still in progress! Thanks for the update. |
I think that ShapeInference pass should not simply fail the pass manager when shape for a tensor can not be inferred.
ShapeInference may be helped or avoided by other passes. Here are some examples:
My suggestions are
The text was updated successfully, but these errors were encountered: