Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion include/tvm/ffi/c_api.h
Original file line number Diff line number Diff line change
Expand Up @@ -755,7 +755,7 @@ TVM_FFI_DLL int TVMFFIAnyViewToOwnedAny(const TVMFFIAny* any_view, TVMFFIAny* ou
* \param result The output result, caller must ensure result->type_index is set to kTVMFFINone.
* \return 0 on success, nonzero on failure.
*/
TVM_FFI_DLL int TVMFFIFunctionCall(TVMFFIObjectHandle func, TVMFFIAny* args, int32_t num_args,
TVM_FFI_DLL int TVMFFIFunctionCall(TVMFFIObjectHandle func, const TVMFFIAny* args, int32_t num_args,
TVMFFIAny* result);

/*!
Expand Down
2 changes: 1 addition & 1 deletion python/tvm_ffi/cython/base.pxi
Original file line number Diff line number Diff line change
Expand Up @@ -288,7 +288,7 @@ cdef extern from "tvm/ffi/c_api.h":
int TVMFFIObjectCreateOpaque(void* handle, int32_t type_index,
void (*deleter)(void*), TVMFFIObjectHandle* out) nogil
int TVMFFIObjectGetTypeIndex(TVMFFIObjectHandle obj) nogil
int TVMFFIFunctionCall(TVMFFIObjectHandle func, TVMFFIAny* args, int32_t num_args,
int TVMFFIFunctionCall(TVMFFIObjectHandle func, const TVMFFIAny* args, int32_t num_args,
TVMFFIAny* result) nogil
int TVMFFIFunctionCreate(void* self, TVMFFISafeCallType safe_call,
void (*deleter)(void*), TVMFFIObjectHandle* out) nogil
Expand Down
2 changes: 1 addition & 1 deletion src/ffi/function.cc
Original file line number Diff line number Diff line change
Expand Up @@ -188,7 +188,7 @@ int TVMFFIFunctionGetGlobal(const TVMFFIByteArray* name, TVMFFIObjectHandle* out
TVM_FFI_SAFE_CALL_END();
}

int TVMFFIFunctionCall(TVMFFIObjectHandle func, TVMFFIAny* args, int32_t num_args,
int TVMFFIFunctionCall(TVMFFIObjectHandle func, const TVMFFIAny* args, int32_t num_args,
TVMFFIAny* result) {
using namespace tvm::ffi;
#ifdef _MSC_VER
Expand Down
Loading