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

[Fix] relay onnx frontend bug when [A, B, M, N] * [1, B, N, K] #9911

Merged
merged 2 commits into from
Jan 15, 2022

Conversation

willzhang4a58
Copy link
Contributor

Thanks for contributing to TVM! Please refer to guideline https://tvm.apache.org/docs/contribute/ for useful information and tips. After the pull request is submitted, please request code reviews from Reviewers by @ them in the pull request thread.

@willzhang4a58
Copy link
Contributor Author

Fix BUG and add test case for batch_matmul [A, B, M, N] * [1, B, N, K]

cc @Huyuwei @jwfromm @kazum @mbrookhart @siju-samuel

@AndrewZhaoLuo
Copy link
Contributor

Will take a look later today

[
out_batch,
_op.strided_slice(
a_shape, [infer_shape(a_shape)[0] - 2], [infer_shape(a_shape)[0]]
Copy link
Contributor

Choose a reason for hiding this comment

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

nit: use a_rank instead of infer_shape(a_shape)[0]

Copy link
Contributor

@AndrewZhaoLuo AndrewZhaoLuo left a comment

Choose a reason for hiding this comment

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

LGTM, just please address nits and rebase

[
out_batch,
_op.strided_slice(
b_shape, [infer_shape(b_shape)[0] - 2], [infer_shape(b_shape)[0]]
Copy link
Contributor

Choose a reason for hiding this comment

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

same here, use b_rank

@willzhang4a58
Copy link
Contributor Author

hi @AndrewZhaoLuo , I have fixed the comment.

@AndrewZhaoLuo AndrewZhaoLuo merged commit 6eb4ed8 into apache:main Jan 15, 2022
crazydemo pushed a commit to crazydemo/tvm that referenced this pull request Jan 27, 2022
…e#9911)

* [Fix] relay onnx frontend bug when [A, B, M, N] * [1, B, N, K]

* fix line

Co-authored-by: tomoyazhang <[email protected]>
ylc pushed a commit to ylc/tvm that referenced this pull request Feb 16, 2022
…e#9911)

* [Fix] relay onnx frontend bug when [A, B, M, N] * [1, B, N, K]

* fix line

Co-authored-by: tomoyazhang <[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.

2 participants