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

[luci] Fix ForwardRehsapeToUnaryOpPass bug #14474

Merged
merged 1 commit into from
Dec 18, 2024

Conversation

jinevening
Copy link
Contributor

This updates rank of constant after reshape is forwarded.

ONE-DCO-1.0-Signed-off-by: Hyukjin Jeong [email protected]

This updates rank of constant after reshape is forwarded.

ONE-DCO-1.0-Signed-off-by: Hyukjin Jeong <[email protected]>
auto const_mul = dynamic_cast<luci::CircleConst *>(mul->y());
ASSERT_NE(nullptr, const_mul);

ASSERT_EQ(3, const_mul->rank());
Copy link
Contributor Author

@jinevening jinevening Dec 18, 2024

Choose a reason for hiding this comment

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

Before this PR, const_mul->rank() was 4, which is incorrect.

@jinevening
Copy link
Contributor Author

This fixes the bug in internal ViT model.

Copy link
Contributor

@seanshpark seanshpark left a comment

Choose a reason for hiding this comment

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

LGTM

@jinevening jinevening merged commit 17081b4 into Samsung:master Dec 18, 2024
9 checks passed
@jinevening jinevening deleted the luci/forward_reshape_rank branch December 18, 2024 09:52
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