Skip to content

[TOPI] Support symbolic shape in einsum#14521

Merged
vinx13 merged 2 commits intoapache:mainfrom
vinx13:feat/einsum-symbolic
Apr 7, 2023
Merged

[TOPI] Support symbolic shape in einsum#14521
vinx13 merged 2 commits intoapache:mainfrom
vinx13:feat/einsum-symbolic

Conversation

@vinx13
Copy link
Copy Markdown
Member

@vinx13 vinx13 commented Apr 6, 2023

@tvm-bot
Copy link
Copy Markdown
Collaborator

tvm-bot commented Apr 6, 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.

  • No users to tag found in teams: topi See #10317 for details

Generated by tvm-bot

@github-actions github-actions Bot requested a review from jwfromm April 6, 2023 19:24
Copy link
Copy Markdown
Contributor

@sunggg sunggg left a comment

Choose a reason for hiding this comment

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

LGTM! Thank you for the fix :)

Copy link
Copy Markdown
Member

@tqchen tqchen left a comment

Choose a reason for hiding this comment

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

LGTM

Comment thread src/topi/einsum.cc
int64_t extent1_value = GetConstInt(extent1);
int64_t extent2_value = GetConstInt(extent2);
if (extent1_value == extent2_value) {
const IntImmNode* extent1_imm = extent1.as<IntImmNode>();
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

One minor note for future, would be useful to have common broadcast extent handling in the future

@vinx13 vinx13 merged commit 460374f into apache:main Apr 7, 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