Skip to content

Enhancement simplify expr#13293

Closed
leiwen83 wants to merge 2 commits into
apache:mainfrom
leiwen83:enhancement_simplify_expr
Closed

Enhancement simplify expr#13293
leiwen83 wants to merge 2 commits into
apache:mainfrom
leiwen83:enhancement_simplify_expr

Conversation

@leiwen83
Copy link
Copy Markdown
Contributor

@leiwen83 leiwen83 commented Nov 4, 2022

No description provided.

* add(%1, %1) convert to multiply(%1, 2f)

* enhance fold_scale_axis to fold multiply(%1, 2f) into conv

Signed-off-by: Lei Wen <wenlei03@qiyi.com>
* Add InferType in the SimplifyAdd pass, so that it would not crash
  when meet complex expr

* Add SwitchAdd0 to switch constant+var to var+constant to make fusion easy

* Add SwitchAdd1 to switch var+var+constant to var+constant+var to make fusion easy

* Add SimplifyDivide to prepare it for fold_scale_axis pass

Signed-off-by: Lei Wen <wenlei03@qiyi.com>
@tvm-bot
Copy link
Copy Markdown
Collaborator

tvm-bot commented Nov 4, 2022

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 auto-tag found, no teams are specified in PR title See #10317 for details

Generated by tvm-bot

@leiwen83 leiwen83 closed this Nov 4, 2022
@leiwen83 leiwen83 deleted the enhancement_simplify_expr branch November 4, 2022 13:11
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.

3 participants