MCPcopy Create free account
hub / github.com/apache/tvm-ffi / InvokeExternC

Method InvokeExternC

include/tvm/ffi/function.h:587–597  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

585 */
586 template <typename... Args>
587 TVM_FFI_INLINE static Any InvokeExternC(void* handle, TVMFFISafeCallType safe_call,
588 Args&&... args) {
589 const int kNumArgs = sizeof...(Args);
590 const int kArraySize = kNumArgs > 0 ? kNumArgs : 1;
591 AnyView args_pack[kArraySize];
592 PackedArgs::Fill(args_pack, std::forward<Args>(args)...);
593 Any result;
594 TVM_FFI_CHECK_SAFE_CALL(safe_call(handle, reinterpret_cast<const TVMFFIAny*>(args_pack),
595 kNumArgs, reinterpret_cast<TVMFFIAny*>(&result)));
596 return result;
597 }
598 /*!
599 * \brief Call function by directly passing in unpacked arguments.
600 *

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected