slyubomirsky commented on PR #13769:
URL: https://github.com/apache/tvm/pull/13769#issuecomment-1380902667

   The problem seems to be that this cast on mainline will not convince Python 
that the result is an opaque Object rather than a PackedFunc. Not sure how to 
change it:
   ```python
   
TVM_REGISTER_GLOBAL("runtime.CastPackedFuncToObject").set_body_typed([](const 
PackedFunc& pf) {
     return Downcast<ObjectRef>(pf);
   });
   ```
   Any advice?


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