-
Notifications
You must be signed in to change notification settings - Fork 112
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
Infer bounds for Reduce op #737
Conversation
Hi Smit, as I have just submit #401, this PR will have conflict with HEAD. You may consider rebase now or any time later: my PR only moves some checks in a util function (For |
17fbbd8
to
3b9f4ea
Compare
Rebased this. |
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.
LGTM with a tiny comment in tests.
Thanks for your fix in https://reviews.llvm.org/D139271: with which we can add encoding when init inferred type even with ShapedTypeComponents
interface.
Besides, this PR makes issue #394 more complicated, which can be addressed at that issue (I have left a comment there, so that this PR is good to go)
Assign to @burmako for a second review.
707ff46
to
113336b
Compare
Related StableHLO PR: openxla/stablehlo#737. Update tests only. PiperOrigin-RevId: 498419074
Related StableHLO PR: openxla/stablehlo#737. Update tests only. PiperOrigin-RevId: 498419074
Related StableHLO PR: openxla/stablehlo#737. Update tests only. PiperOrigin-RevId: 498419074
Extended reduce op shape function to also propagate bounds for dimensions that are not reduced.
Also, moved verifyCompatibleShapeWithBounds to public in Base.h
cc @zhouxin913 for review