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


##########
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:
   Can you be a little more specific on which exception you are catching here? 
Should probably be at least a `TVMError`.



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