-
Notifications
You must be signed in to change notification settings - Fork 3.8k
Generate Lower Bound Conditions for issue 1014 #1091
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
Conversation
sync from dmlc/tvm
update the fork branch
sync up
sync up
sync up
|
there is a regression test failure, @kun-zh can you look into that? http://mode-gpu.cs.washington.edu:8080/blue/organizations/jenkins/dmlc%2Ftvm/detail/PR-1091/3/pipeline |
src/schedule/message_passing.cc
Outdated
| Expr value = ComputeExpr<Sub>(value_map.at(iv), iv->dom->min); | ||
| Expr vmin = EvalSet(value, iset_dmap).min(); | ||
| Expr vmax = EvalSet(value, iset_dmap).max(); | ||
| if (vmin.type() != value.type() || !can_prove(vmin > (iv->dom->min - 1))) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
vmin >= iv->dom->min
src/schedule/message_passing.cc
Outdated
| Expr vmin = EvalSet(value, iset_dmap).min(); | ||
| Expr vmax = EvalSet(value, iset_dmap).max(); | ||
| if (vmin.type() != value.type() || !can_prove(vmin > (iv->dom->min - 1))) { | ||
| preds.emplace_back(value > (iv->dom->min - 1)); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
value >= iv->dom->min
|
refined and fixed regression failure |
src/schedule/message_passing.cc
Outdated
| CHECK(iv->dom.defined()); | ||
| if (!skip_ivar_domain && !iv->dom.same_as(dom)) { | ||
| Expr value = ComputeExpr<Sub>(value_map.at(iv), iv->dom->min); | ||
| Expr vmin = EvalSet(value, iset_dmap).min(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do EvalSet once, instead of multiple times
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
specifically, cache the result of EvalSet and then get min and max
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done
Generate Lower Bound Conditions for issue #1014