Skip to content

Fixed some testcases with static verification prototype for linalg operations - #5169

Merged
hanhanW merged 1 commit into
iree-org:mainfrom
inho9606:tests
Mar 25, 2021
Merged

hanhanW merged 1 commit into
iree-org:mainfrom
inho9606:tests

Conversation

@inho9606

Copy link
Copy Markdown
Contributor

I fixed some testcases with verification prototype. The prototype is in https://reviews.llvm.org/D98390 .
I think this change should be merged before the verification is landed since it might interrupt building the entire IREE..

@google-cla google-cla Bot added the cla: yes label Mar 19, 2021
@hanhanW
hanhanW self-requested a review March 19, 2021 10:47

@hanhanW hanhanW left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

I'm surprised that there are changes in e2e tests. @inho9606 and I had an offline discussion, and @inho9606 will do some math calculation to see if this is a reasonable change.

@inho9606

Copy link
Copy Markdown
Contributor Author

I'm surprised that there are changes in e2e tests. @inho9606 and I had an offline discussion, and @inho9606 will do some math calculation to see if this is a reasonable change.

According to my understand for manually math calculation, in llvm_specific/conv.mlir, conv2d_nopadding function should have (tensor<1x4x5x2xf32>, tensor<3x2x2x1xf32>) -> tensor<1x2x4x1xf32> or (tensor<1x4x4x2xf32>, tensor<3x2x2x1xf32>) -> tensor<1x2x3x1xf32>. I mean, if the input shape is 1x4x5x2, then the output should be 1x2x4x1. But if the input shape is 1x4x4x2, then the output shape should be 1x2x3x1. So, my result is that this test has mismatch input/output shapes.. If I assume the input shape is 1x4x4x2, then I think the calculated result is correct. If the output shape should be fixed to 1x2x4x1, then I think we need to fix the result as long as my idea is correct.
I've only seen this case yet, but I think the others have similar shapes. So I think it would be similar, but I'll try to double check.

@hanhanW hanhanW left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Thanks for doing this!

@hanhanW
hanhanW merged commit b12648d into iree-org:main Mar 25, 2021
hanhanW added a commit that referenced this pull request Mar 25, 2021
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.

2 participants