wkcn commented on issue #14030: The bug in MXTVMBridge
URL: 
https://github.com/apache/incubator-mxnet/issues/14030#issuecomment-459551740
 
 
   @tqchen 
   Is it possible to provide an API like this?
   ```c++
   class PackedFunc {
   public:
     PackedFunc() {
       RemoteCallPacked = [](PackedFunc* func, TVMArgs args, TVMRetValue* rv) {
         func->CallPacked(func, args, rv);
       };
     };
     void (*RemoteCallPacked)(PackedFunc* func, TVMArgs args, TVMRetValue* rv);
   ...
   };
   ```
   The outside program calls `RemoteCallPacked` to avoid the problem of ABI 
compatibility.

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


With regards,
Apache Git Services

Reply via email to