Skip to content
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

Add Shape op verifier #1711

Merged
merged 2 commits into from
Sep 20, 2022
Merged

Add Shape op verifier #1711

merged 2 commits into from
Sep 20, 2022

Conversation

philass
Copy link
Member

@philass philass commented Sep 20, 2022

I don't think the attributes provided constituted a valid shape op instance.

But it should have failed more gracefully. I've added a verifier for shape op. As well as a test for it.

I also have updated the docs to reflect that lowering doesn't support slices.

Closes #1710

Thanks for flagging this for me @tungld

Signed-off-by: Philip Lassen <[email protected]>
@philass philass requested a review from tungld September 20, 2022 05:42
Signed-off-by: Philip Lassen <[email protected]>
Copy link
Collaborator

@tungld tungld left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. Thanks for your quick response!

@tungld tungld merged commit 51dcbf9 into onnx:main Sep 20, 2022
@jenkins-droid
Copy link
Collaborator

Jenkins Linux ppc64le Build #6708 [push] Add Shape op verifier (#... started at 02:53

@jenkins-droid
Copy link
Collaborator

Jenkins Linux s390x Build #7659 [push] Add Shape op verifier (#... started at 02:51

@jenkins-droid
Copy link
Collaborator

Jenkins Linux amd64 Build #7644 [push] Add Shape op verifier (#... started at 01:51

@jenkins-droid
Copy link
Collaborator

Jenkins Linux amd64 Build #7644 [push] Add Shape op verifier (#... passed after 1 hr 7 min

@jenkins-droid
Copy link
Collaborator

Jenkins Linux ppc64le Build #6708 [push] Add Shape op verifier (#... passed after 1 hr 38 min

@jenkins-droid
Copy link
Collaborator

Jenkins Linux s390x Build #7659 [push] Add Shape op verifier (#... passed after 1 hr 46 min

sstamenova pushed a commit to sstamenova/onnx-mlir that referenced this pull request Sep 21, 2022
* Add Shape op verifier

Signed-off-by: Philip Lassen <[email protected]>
Signed-off-by: Stella Stamenova <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

ShapeOp whose start is negative is failed when doing shape inference and lowering to Krnl
3 participants