Check failed: static_cast<size_t>(index) < outputs_.size() (1 vs. 1) :


#1

when I run this script:
tvm_input = tvm.nd.array(x.asnumpy(), ctx=ctx)
module.set_input(‘data’, tvm_input)

run

module.run()

get outputs

class_IDs, scores, bounding_boxs = module.get_output(0), module.get_output(1), module.get_output(2)

TVMError Traceback (most recent call last)
in
6 module.run()
7 # get outputs
----> 8 class_IDs, scores, bounding_boxs = module.get_output(0), module.get_output(1), module.get_output(2)

~/Env/tvm/python/tvm/contrib/graph_runtime.py in get_output(self, index, out)
209 return out
210
–> 211 return self._get_output(index)
212
213 def debug_get_output(self, node, out):

~/Env/tvm/python/tvm/_ffi/_cython/function.pxi in tvm._ffi._cy3.core.FunctionBase.call()

~/Env/tvm/python/tvm/_ffi/_cython/function.pxi in tvm._ffi._cy3.core.FuncCall()

~/Env/tvm/python/tvm/_ffi/_cython/function.pxi in tvm._ffi._cy3.core.FuncCall3()

~/Env/tvm/python/tvm/_ffi/_cython/base.pxi in tvm._ffi._cy3.core.CALL()

TVMError: Traceback (most recent call last):
[bt] (8) /home/firefly/Tools/tvm/build/libtvm.so(+0x83fcec) [0x7fb3b0bcec]
[bt] (7) /home/firefly/Tools/tvm/build/libtvm.so(+0x83f9c0) [0x7fb3b0b9c0]
[bt] (6) /home/firefly/Tools/tvm/build/libtvm.so(+0x845838) [0x7fb3b11838]
[bt] (5) /home/firefly/Tools/tvm/build/libtvm.so(+0x845388) [0x7fb3b11388]
[bt] (4) /home/firefly/Tools/tvm/build/libtvm.so(+0x843e7c) [0x7fb3b0fe7c]
[bt] (3) /home/firefly/Tools/tvm/build/libtvm.so(+0x83de6c) [0x7fb3b09e6c]
[bt] (2) /home/firefly/Tools/tvm/build/libtvm.so(+0x84d920) [0x7fb3b19920]
[bt] (1) /home/firefly/Tools/tvm/build/libtvm.so(+0x84c2f8) [0x7fb3b182f8]
[bt] (0) /home/firefly/Tools/tvm/build/libtvm.so(+0x12af94) [0x7fb33f6f94]
TVMError: Except caught from RPC call: [07:43:33] /home/firefly/Tools/tvm/src/runtime/graph/graph_runtime.cc:125: Check failed: static_cast<size_t>(index) < outputs_.size() (1 vs. 1) :

what can I do when this happen? how can I fix this?