tqchen commented on a change in pull request #5367: Improve IntervalSet's 
floormod
URL: https://github.com/apache/incubator-tvm/pull/5367#discussion_r410945841
 
 

 ##########
 File path: src/arith/int_set.cc
 ##########
 @@ -730,12 +765,30 @@ Map<Var, IntSet> ConvertDomMap(
   return dmap;
 }
 
-IntSet EvalSet(PrimExpr e,
-               const Map<Var, IntSet>& dom_map) {
+IntSet EvalSet(PrimExpr e, const Map<Var, IntSet>& dom_map,
+               const std::unordered_map<IterVar, Range>& rmap) {
   Analyzer ana;
+  // Bind ana with rmap
+  for (auto entry : rmap) {
+    ana.Bind(entry.first->var, entry.second);
 
 Review comment:
   Let us try to upgrade the API away from the EvalSet, and directly use 
https://github.com/apache/incubator-tvm/blob/master/include/tvm/arith/analyzer.h#L366

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

Reply via email to