hcms1994 opened a new issue, #14717:
URL: https://github.com/apache/tvm/issues/14717
I encountered this error when:
mod, config = partition_for_tensorrt(mod, params)
error messageļ¼
Traceback (most recent call last):
File "autoTVM_tune_relay_tensorrt.py", line 105, in <module>
tune_and_evaluate()
File "autoTVM_tune_relay_tensorrt.py", line 67, in tune_and_evaluate
mod, config = partition_for_tensorrt(mod, params)
File
"/home/jiyingyu/TVM_work/code/tvm-0.11.0-release/python/tvm/ir/module.py", line
110, in __getitem__
return _ffi_api.Module_LookupDef(self, var)
File
"/home/jiyingyu/TVM_work/code/tvm-0.11.0-release/python/tvm/_ffi/_ctypes/packed_func.py",
line 237, in __call__
raise get_last_ffi_error()
tvm._ffi.base.TVMError: Traceback (most recent call last):
2: TVMFuncCall
1:
tvm::runtime::PackedFuncObj::Extractor<tvm::runtime::PackedFuncSubObj<tvm::runtime::TypedPackedFunc<tvm::TypeData
(tvm::IRModule,
tvm::GlobalTypeVar)>::AssignTypedLambda<tvm::{lambda(tvm::IRModule,
tvm::GlobalTypeVar)#6}>(tvm::{lambda(tvm::IRModule, tvm::GlobalTypeVar)#6},
std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>
>)::{lambda(tvm::runtime::TVMArgs const&, tvm::runtime::TVMRetValue*)#1}>
>::Call(tvm::runtime::PackedFuncObj const*, std::__cxx11::basic_string<char,
std::char_traits<char>, std::allocator<char> >, tvm::runtime::TVMRetValue)
0: tvm::runtime::TVMMovableArgValueWithContext_::operator
tvm::GlobalTypeVar<tvm::GlobalTypeVar>() const
3: TVMFuncCall
2:
tvm::runtime::PackedFuncObj::Extractor<tvm::runtime::PackedFuncSubObj<tvm::runtime::TypedPackedFunc<tvm::TypeData
(tvm::IRModule,
tvm::GlobalTypeVar)>::AssignTypedLambda<tvm::{lambda(tvm::IRModule,
tvm::GlobalTypeVar)#6}>(tvm::{lambda(tvm::IRModule, tvm::GlobalTypeVar)#6},
std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>
>)::{lambda(tvm::runtime::TVMArgs const&, tvm::runtime::TVMRetValue*)#1}>
>::Call(tvm::runtime::PackedFuncObj const*, std::__cxx11::basic_string<char,
std::char_traits<char>, std::allocator<char> >, tvm::runtime::TVMRetValue)
1: tvm::runtime::TVMMovableArgValueWithContext_::operator
tvm::GlobalTypeVar<tvm::GlobalTypeVar>() const
0: tvm::GlobalTypeVar
tvm::runtime::TVMPODValue_::AsObjectRef<tvm::GlobalTypeVar>() const
File
"/home/jiyingyu/TVM_work/code/tvm-0.11.0-release/include/tvm/runtime/packed_func.h",
line 777
TVMError: In function ir.Module_LookupDef(0: IRModule, 1: GlobalTypeVar) ->
relay.TypeData: error while converting argument 1: [10:47:20]
/home/jiyingyu/TVM_work/code/tvm-0.11.0-release/include/tvm/runtime/packed_func.h:1886:
---------------------------------------------------------------
An error occurred during the execution of TVM.
For more information, please see: https://tvm.apache.org/docs/errors.html
---------------------------------------------------------------
**Check failed: type_code_ == kTVMObjectHandle (0 vs. 8) : expected Object
but got int**
Have you got any idea why this error happen?
--
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.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]