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

Nested rfactor fix, update predicates as well as source. #3382

Merged
merged 3 commits into from
Jun 28, 2019

Conversation

csarofeen
Copy link
Contributor

Replace reduction axis in predicates as well as the source code. Fixes: #3381

@tqchen
Copy link
Member

tqchen commented Jun 20, 2019

Thanks for the contribution, @kazum @sgrechanik-h @derisavi @merrymercy please help to review this PR


Array<Expr> new_pred = ir::UpdateArray(orig_pred,
[&replacer] (const Expr& e) { return replacer.Mutate(e); });

Copy link
Member

Choose a reason for hiding this comment

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

Why do you create an array?
Just use
Expr new_pred = replacer.Mutate(predicate)

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Thank you for the syntax, updated.

@csarofeen
Copy link
Contributor Author

@merrymercy Are there any other changes you'd like to see? #3444 is also similar if you would please review that one as well, simply wraps the predicate in likely(simplify(...)).

@merrymercy merrymercy merged commit 8fe715f into apache:master Jun 28, 2019
wweic pushed a commit to wweic/tvm that referenced this pull request Jun 28, 2019
* Nested rfactor fix, update predicates as well as source.

* Linter

* Syntax fix.
wweic pushed a commit to neo-ai/tvm that referenced this pull request Jun 30, 2019
* Nested rfactor fix, update predicates as well as source.

* Linter

* Syntax fix.
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.

rfactor does not update predicates
3 participants