0

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

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 run it on centos7. I think whether someone who has used this project might help me with my questions.

I run the example python3 run_LeNet_Relay.py by following the steps it gave. However, I met some problems. I run the code sentence by sentence in order to find where the error exist. And when I run the code sentence module = nvdla.partition_for_nvdla(module, params=params) in line 161, errors exist. Here are the errors.

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 some questions about the errors. First, the last TypeError is about _func_wrapper() however I don't even find it in the python files, which makes me have no idea what to do with the bug. Second, I think I didn't miss any steps of the tutorial, and I use my virtual machine of ubuntu and also meet these errors.

Hope someone can help me with this problem.

Owenz
  • 1
  • 1

0 Answers0