jinchenglee commented on pull request #7338: URL: https://github.com/apache/tvm/pull/7338#issuecomment-767695790
@areusch , there's another macro in packed_func.h needs same fix: ``` #define TVM_DLL_EXPORT_TYPED_FUNC(ExportName, Function) \ extern "C" { \ TVM_DLL int ExportName(TVMValue* args, int* type_code, int num_args, TVMValue* out_value, \ int* out_type_code) { \ try { \ auto f = Function; \ using FType = ::tvm::runtime::detail::function_signature<decltype(f)>::FType; \ ::tvm::runtime::TVMRetValue rv; \ ::tvm::runtime::detail::unpack_call_by_signature<FType>::run( \ f, ::tvm::runtime::TVMArgs(args, type_code, num_args), &rv); \ rv.MoveToCHost(out_value, out_type_code); \ return 0; \ } catch (const ::std::runtime_error& _except_) { \ TVMAPISetLastError(_except_.what()); \ return -1; \ } \ } \ } ``` ---------------------------------------------------------------- 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. For queries about this service, please contact Infrastructure at: us...@infra.apache.org