Hi !
I am using BYOC flow and crt runtime to verify some operators by our custom dense function.
However, I try to import the RNN (GRU) operator with sequence length 60.
Our codgen will generate more than 256 functions, and I encounter the following error.
invalid function index: 01d4
I found the error happens in the function “TVMFuncRegistry_GetByIndex” which is in the file “tvm/src/runtime/crt/common/func_registry.c”.
tvm_crt_error_t TVMFuncRegistry_GetByIndex(const TVMFuncRegistry* reg,
tvm_function_index_t function_index,
TVMBackendPackedCFunc* out_func) {
uint8_t num_funcs;
num_funcs = reg->names[0];
if (function_index >= num_funcs) {
return kTvmErrorFunctionIndexInvalid;
}
*out_func = reg->funcs[function_index];
return kTvmErrorNoError;
}
The number of the functions is stored at a character which can only store 256 functions.
How do I solve this problem?
Thanks!