Skip to content

[Bugfix] [Relay] fix a bug caused by IncompleteTypeNode in EinsumRel while doing MergeComposite#14556

Merged
tqchen merged 3 commits intoapache:mainfrom
kfeng123:einsum_bug_fix
Apr 11, 2023
Merged

[Bugfix] [Relay] fix a bug caused by IncompleteTypeNode in EinsumRel while doing MergeComposite#14556
tqchen merged 3 commits intoapache:mainfrom
kfeng123:einsum_bug_fix

Conversation

@kfeng123
Copy link
Copy Markdown
Contributor

@kfeng123 kfeng123 commented Apr 10, 2023

Previously, it was reported that when using MergeComposite on a model with broadcast_to OP, an error caused by IncompleteTypeNode occurs during compiling model. See https://discuss.tvm.apache.org/t/incomplete-type-in-broadcasttorel-while-doing-mergecomposite/10439

A similar bug also occurs if the model contains einsum OP. This PR fixes this bug for einsum OP and add a test case.

@tvm-bot
Copy link
Copy Markdown
Collaborator

tvm-bot commented Apr 10, 2023

Thanks for contributing to TVM! Please refer to the contributing guidelines https://tvm.apache.org/docs/contribute/ for useful information and tips. Please request code reviews from Reviewers by @-ing them in a comment.

Generated by tvm-bot

@kfeng123
Copy link
Copy Markdown
Contributor Author

cc @comaniac

@comaniac
Copy link
Copy Markdown
Contributor

LGTM. Can you add a unit test?

@kfeng123
Copy link
Copy Markdown
Contributor Author

LGTM. Can you add a unit test?

Hi, I have added a test case of MergeComposite: the old code crashed and the updated code works correctly.

Copy link
Copy Markdown
Contributor

@comaniac comaniac left a comment

Choose a reason for hiding this comment

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

LGTM

@tqchen tqchen merged commit 8554e7a into apache:main Apr 11, 2023
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.

5 participants