Problems when following Integrate TVM and NVDLA

Hello everyone.

I meet a problem while I am following the project from Github https://github.com/shivmgg/tvm about integrating NVDLA and TVM. I think whether someone who has used this project might help me with my questions.

I run the example by following the steps it gave. However, I met some problems. When I run the code sentence module = nvdla.partition_for_nvdla(module, params=params) in line 161, errors exist. Here are the errors.

Blockquote Traceback (most recent call last): File “”, line 1, in File “/path-to-tvm/tvm-main/python/tvm/relay/op/contrib/nvdla.py”, line 62, in partition_for_nvdla return seq(mod) File “/path-to-tvm/tvm-main/python/tvm/ir/transform.py”, line 127, in call return _ffi_transform_api.RunPass(self, mod) File /path-to-tvm/tvm-main/python/tvm/_ffi/ctypes/packed_func.py", line 237, in call raise get_last_ffi_error() TypeError: Traceback (most recent call last): [bt] (8) /path-to-tvm/tvm-main/build/libtvm.so(tvm::relay::ExprFunctor<tvm::RelayExpr (tvm::RelayExpr const&)>::InitVTable()::{lambda(tvm::runtime::ObjectRef const&, tvm::relay::ExprFunctor<tvm::RelayExpr (tvm::RelayExpr const&)>)#5}::_FUN(tvm::runtime::ObjectRef const&, tvm::relay::ExprFunctor<tvm::RelayExpr (tvm::RelayExpr const&)>)+0x13) [0x7f57e52b8a93] [bt] (7) /path-to-tvm/tvm-main/build/libtvm.so(tvm::relay::ExprMutator::VisitExpr (tvm::relay::FunctionNode const*)+0x664) [0x7f57e53f9634] [bt] (6) /path-to-tvm/tvm-main/build/libtvm.so(tvm::relay::MixedModeMutator::VisitExpr(tvm::RelayExpr const&)+0x36f) [0x7f57e53fa74f] [bt] (5) /path-to-tvm/tvm-main/build/libtvm.so(tvm::relay::MixedModeMutator::VisitLeaf(tvm::RelayExpr const&)+0x45) [0x7f57e53f9be5] [bt] (4)/path-to-tvm/tvm-main/build/libtvm.so(tvm::relay::PostOrderRewriter::DispatchVisitExpr(tvm::RelayExpr const&)+0x33) [0x7f57e54000d3] [bt] (3) /path-to-tvm/tvm-main/build/libtvm.so(tvm::relay::ExprRewriter::Rewrite(tvm::RelayExpr const&, tvm::RelayExpr const&)+0x79) [0x7f57e519b439] [bt] (2)/path-to-tvm/tvm-main/build/libtvm.so(tvm::relay::ExprRewriter::InitVTable()::{lambda(tvm::runtime::ObjectRef const&, tvm::relay::ExprRewriter*, tvm::RelayExpr const&)#6}::FUN(tvm::runtime::ObjectRef const&, tvm::relay::ExprRewriter*, tvm::RelayExpr const&)+0x14) [0x7f57e51989e4] [bt] (1) /path-to-tvm/tvm-main/build/libtvm.so(tvm::relay::annotate_target::AnnotateTargetRewriter::Rewrite (tvm::relay::CallNode const*, tvm::RelayExpr const&)+0x159f) [0x7f57e520180f] [bt] (0) /path-to-tvm/tvm-main/build/libtvm.so(+0x1c6da03) [0x7f57e550fa03] File “/path-to-tvm/tvm-main/python/tvm/_ffi/_ctypes/packed_func.py”, line 81, in cfun rv = local_pyfunc(*pyargs) TypeError: _func_wrapper() missing 1 required positional argument: ‘args’

I have no idea what happens. It seems that there is something wrong in the function Run_Pass(), maybe there is no definition for the pass for nvdla because I don’t find it in the files. Hope someone can help me. Thank you!