Skip to content

[hotfix] Fix the behavior of decompose reduction - #10809

Merged
masahi merged 1 commit into
apache:mainfrom
yzh119:hotfix-decompose-reduction
Mar 29, 2022
Merged

[hotfix] Fix the behavior of decompose reduction#10809
masahi merged 1 commit into
apache:mainfrom
yzh119:hotfix-decompose-reduction

Conversation

@yzh119

@yzh119yzh119 commented Mar 29, 2022

Copy link
Copy Markdown
Member

This PR fixed the bug introduced in #10638 , where I used const_cast to change the field of a block, which may affect other modules because different modules might share the same block.

I also add a test to check whether the decompose reduction would affect the hash value of other modules.

cc @masahi@Hzfengsy

@HzfengsyHzfengsy left a comment

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.

LGTM thanks for the fixing

@masahimasahi left a comment

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.

Thanks for the quick fix, I verified locally that it fixed my issue.

@junrushaojunrushao left a comment

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.

Thanks for fixing it so quickly!

@masahi
masahi merged commit 5306ffa into apache:mainMar 29, 2022
junrushao pushed a commit to junrushao/tvm that referenced this pull request Mar 29, 2022
@yzh119
yzh119 deleted the hotfix-decompose-reduction branch March 29, 2022 19:42
pfk-beta pushed a commit to pfk-beta/tvm that referenced this pull request Apr 11, 2022
Sign up for freeto 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.

4 participants

@yzh119@masahi@junrushao@Hzfengsy