AndrewZhaoLuo commented on code in PR #14167:
URL: https://github.com/apache/tvm/pull/14167#discussion_r1142502071


##########
src/meta_schedule/postproc/rewrite_cooperative_fetch.cc:
##########
@@ -39,7 +39,17 @@ Optional<Integer> ParseThreadBinding(const Schedule& sch, 
const Instruction& ins
   if (thread_axis != axis) {
     return NullOpt;
   }
-  return 
Downcast<Integer>(sch->Get(Downcast<LoopRV>(inst->inputs[0]))->extent);
+
+  try {
+    return 
Downcast<Integer>(sch->Get(Downcast<LoopRV>(inst->inputs[0]))->extent);
+  } catch (const std::exception& e) {

Review Comment:
   I have removed this. 
   
   Before the issue was when tiling, I bind loops. Then I apply fusion which 
possibly destroyed the loops I originally bound to, which the pass does not 
expect.
   
   Now I apply fusion then I tile so the bound loops will always exist in the 
schedule so this is no longer needed.



-- 
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.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to