honghuichao opened a new issue, #13759:
URL: https://github.com/apache/tvm/issues/13759
The reason for this problem is the second input --indices cannot a dynamic
shape tensor.
self._construct_nodes(graph)
File "/home/workspace/tvm/python/frontend/onnx.py", line 6567, in
_construct_nodes
op = self._convert_operator(op_name, inputs, attr, self.opset)
File "/home/workspace/tvm/python/frontend/onnx.py", line 6686, in
_convert_operator
sym = convert_map[op_name](inputs, attrs, self._params)
File "/home/workspace/tvm/python/frontend/onnx.py", line 4194, in _impl_v1
return cls._op_dispatch(operator, inputs, attr, params)
File "/home/workspace/tvm/python/frontend/onnx.py", line 4042, in
_op_dispatch
return op_map[operator](inputs, attr, params)
File "/home/workspace/tvm/python/frontend/onnx.py", line 4140, in
_index_put
indices, values = cls._check_index(inputs[1 : len(inputs) - 2],
inputs[len(inputs) - 2])
File "/home/workspace/tvm/python/frontend/onnx.py", line 4134, in
_check_index
return unfolding_indices(indices, values)
File "/home/workspace/tvm/python//frontend/onnx.py", line 4127, in
unfolding_indices
_op.repeat(_op.tile(flatten_indices[i], (tile_size[i],)),
repeat_size[i], 0)
File "/home/workspace/tvm/python/tvm/relay/op/transform.py", line 665, in
repeat
return _make.repeat(data, repeats, axis)
File "/home/workspace/tvm/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):
[bt] (5) /home/workspace/tvm/build/libtvm.so(TVMFuncCall+0x63)
[0x7f32be9d7123]
[bt] (4)
/home/workspace/tvm/build/libtvm.so(tvm::runtime::PackedFuncObj::Extractor<tvm::runtime::PackedFuncSubObj<tvm::runtime::TypedPackedFunc<tvm::RelayExpr
(tvm::RelayExpr, int, int)>::AssignTypedLambda<tvm::RelayExpr
(*)(tvm::RelayExpr, int, int)>(tvm::RelayExpr (*)(tvm::RelayExpr, int, int),
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*, tvm::runtime::TVMArgs,
tvm::runtime::TVMRetValue*)+0x1fe) [0x7f32be2fa1be]
[bt] (3)
/home/workspace/tvm/build/libtvm.so(tvm::runtime::TVMMovableArgValueWithContext_::operator
int<int>() const+0x28) [0x7f32bd0962b8]
[bt] (2)
/home/workspace/tvm/build/libtvm.so(tvm::runtime::TVMPODValue_::operator int()
const+0x194) [0x7f32bcfc1944]
[bt] (1)
/home/workspace/tvm/build/libtvm.so(tvm::runtime::detail::LogFatal::Entry::Finalize()+0x45)
[0x7f32bcc5815b]
[bt] (0)
/home/workspace/tvm/build/libtvm.so(tvm::runtime::Backtrace[abi:cxx11]()+0x22)
[0x7f32be9f7892]
File "/home/workspace/tvm/include/tvm/runtime/packed_func.h", line 777
TVMError: In function relay.op._make.repeat(0: RelayExpr, 1: int, 2: int) ->
RelayExpr: error while converting argument 1: [17:09:32]
/home/workspace/tvm/include/tvm/runtime/packed_func.h:562:
---------------------------------------------------------------
An error occurred during the execution of TVM.
For more information, please see: https://tvm.apache.org/docs/errors.html
---------------------------------------------------------------
Check failed: type_code_ == kDLInt (8 vs. 0) : expected int but got Object
--
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]