-
Notifications
You must be signed in to change notification settings - Fork 315
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
Relax dynamic restriction on ScatterND
stablehlo conversion
#2772
Conversation
Signed-off-by: Sam <[email protected]>
Can one of the admins verify this patch? |
I'll be honest. I don't completely understand the lowering of |
@jenkins-droid test this please |
Can one of the admins verify this patch? |
@jenkins-droid test this please |
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, feel free to get a second opinion from an HLO expert.
@srcarroll let me know when you are ready for me to push the code. |
The assertion is restrictive since I would like to provide a basic implementation for static-shaped tensors first, and fail dynamic ones temporarily. I believe that you are now supporting dynamic cases and we could remove some restrictions gradually. As for the |
@Connor-XY Thanks for the confirmation! @AlexandreEichenberger you can merge. I'm rebasing now just in case |
Can one of the admins verify this patch? |
@jenkins-droid test this please |
Jenkins Linux s390x Build #14626 [push] Relax dynamic restrictio... started at 11:37 |
Jenkins Linux amd64 Build #14596 [push] Relax dynamic restrictio... started at 10:37 |
Jenkins Linux ppc64le Build #13621 [push] Relax dynamic restrictio... started at 11:47 |
Jenkins Linux amd64 Build #14596 [push] Relax dynamic restrictio... passed after 1 hr 3 min |
Jenkins Linux s390x Build #14626 [push] Relax dynamic restrictio... passed after 1 hr 24 min |
Jenkins Linux ppc64le Build #13621 [push] Relax dynamic restrictio... passed after 1 hr 59 min |
The previous implementation asserted that all dims of the
indices
operand were static. First of all, assertion isn't appropriate here as the definition of the op allows dynamic. This is a condition for the pattern match and thus should fail the match withnotifyMatchFailure
. Second, the implementation only relies on the last dim being static, so we can relax the match condition and only fail if last dim is dynamic.