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

[Bugfix] fskip of EliminateCommonSubexpr cannot always return false #4620

Merged
merged 2 commits into from Jan 11, 2020

Conversation

yuliujq
Copy link
Contributor

@yuliujq yuliujq commented Jan 4, 2020

Originally, fskip returns false at the end of PackedFunc, discards return true in 'cast' case

fskip returns false at the end of PackedFunc, discards return true in 'cast' case
@yuliujq yuliujq changed the title fskip of EliminateCommonSubexpr will not always return false fskip of EliminateCommonSubexpr cannot always return false Jan 4, 2020
@yuliujq yuliujq changed the title fskip of EliminateCommonSubexpr cannot always return false [relay][optimize]fskip of EliminateCommonSubexpr cannot always return false Jan 4, 2020
@yuliujq yuliujq changed the title [relay][optimize]fskip of EliminateCommonSubexpr cannot always return false [Bugfix] fskip of EliminateCommonSubexpr cannot always return false Jan 4, 2020
@yuliujq
Copy link
Contributor Author

yuliujq commented Jan 4, 2020

A little fix for fskip in EliminateCommonSubexpr, it will not return false in 'cast' case.

@yuliujq yuliujq closed this Jan 4, 2020
@yuliujq yuliujq reopened this Jan 4, 2020
@vinx13 vinx13 self-assigned this Jan 5, 2020
@vinx13
Copy link
Member

vinx13 commented Jan 5, 2020

could you take a look at the ci error?

@yzhliu
Copy link
Member

yzhliu commented Jan 6, 2020

also can we have a test case?

@@ -318,6 +318,7 @@ class RelayBuildModule : public runtime::ModuleNode {
pass_seqs.push_back(transform::SimplifyInference());
PackedFunc fskip = PackedFunc([](TVMArgs args, TVMRetValue* rv) {
Expr expr = args[0];
*rv = false;
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Default return false

@vinx13 vinx13 merged commit 4073125 into apache:master Jan 11, 2020
alexwong pushed a commit to alexwong/tvm that referenced this pull request Feb 26, 2020
…pache#4620)

* 'fskip' will not always return false

fskip returns false at the end of PackedFunc, discards return true in 'cast' case

* Update build_module.cc
alexwong pushed a commit to alexwong/tvm that referenced this pull request Feb 28, 2020
…pache#4620)

* 'fskip' will not always return false

fskip returns false at the end of PackedFunc, discards return true in 'cast' case

* Update build_module.cc
zhiics pushed a commit to neo-ai/tvm that referenced this pull request Mar 2, 2020
…pache#4620)

* 'fskip' will not always return false

fskip returns false at the end of PackedFunc, discards return true in 'cast' case

* Update build_module.cc
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants