We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b4a6b73 commit 7707496Copy full SHA for 7707496
ffi/src/ffi/function.cc
@@ -92,7 +92,10 @@ class GlobalFunctionTable {
92
String name(method_info->name.data, method_info->name.size);
93
if (table_.count(name)) {
94
if (!can_override) {
95
- TVM_FFI_THROW(RuntimeError) << "Global Function `" << name << "` is already registered";
+ TVM_FFI_LOG_AND_THROW(RuntimeError)
96
+ << "Global Function `" << name << "` is already registered, possible causes:\n"
97
+ << "- Two GlobalDef().def registrations for the same function \n"
98
+ << "Please remove the duplicate registration.";
99
}
100
101
table_.Set(name, ObjectRef(make_object<Entry>(method_info)));
0 commit comments