-
Notifications
You must be signed in to change notification settings - Fork 366
Return a failure instead of crashing if shape inference can not be run because of unraked operand types #3023
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
Return a failure instead of crashing if shape inference can not be run because of unraked operand types #3023
Conversation
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,
I verified a few, let me just ask just to be sure. The return failure()
that are added here are all in the computeShape(...)
functions, which is fine since we expect to have successfully run shape inference before, were potentially unranked values have been at least ranked.
Thanks for adding "graceful" errors, much appreciated.
@AlexandreEichenberger Yes, the Before this PR, the functions It would be nice if you could merge this, as I do not have merge rights |
Will do, for some reason I don't have the usual button to update to the latest. do you mind doing this on your end, and then I will merge. I asked for you to have access right to run the CIs. After a PR or two, will give you merge permission too. |
…n because of unraked operand types Signed-off-by: Jonas Rickert <[email protected]>
b5b2892
to
06e4ca7
Compare
@AlexandreEichenberger I rebased onto the latest main |
Jenkins Linux ppc64le Build #15093 [push] Return a failure instead... started at 11:38 |
Jenkins Linux s390x Build #16066 [push] Return a failure instead... started at 11:22 |
Jenkins Linux amd64 Build #16064 [push] Return a failure instead... started at 10:22 |
Jenkins Linux amd64 Build #16064 [push] Return a failure instead... failed after 53 min |
Jenkins Linux s390x Build #16066 [push] Return a failure instead... passed after 1 hr 27 min |
@AlexandreEichenberger |
Jenkins Linux ppc64le Build #15093 [push] Return a failure instead... passed after 2 hr 18 min |
Some
computeShape
functions assume/rely on the operands being ranked.This PR adds a check to them, so that they return
failure
in case this assumption does not hold, instead of asserting. This allows callers of this function to handle this failure