junrushao commented on code in PR #13785:
URL: https://github.com/apache/tvm/pull/13785#discussion_r1072875889


##########
include/tvm/script/printer/ir_docsifier_functor.h:
##########
@@ -69,6 +69,9 @@ class IRDocsifierFunctor {
     if ((pf = LookupDispatchTable("", type_index)) != nullptr) {
       return (*pf)(obj, args...);
     }
+    LOG(WARNING) << "ObjectFunctor calls un-registered function on type: "
+                 << runtime::Object::TypeIndex2Key(type_index) << " (token: " 
<< token << ")"
+                 << ". ObjectType: " << obj->GetTypeKey() << ". Object: " << 
obj;

Review Comment:
   This is used to provide helpful debug information when there is outer logic 
that accidentally catches the error being thrown out



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