jikechao opened a new issue, #14638: URL: https://github.com/apache/tvm/issues/14638
For the `SequenceInsert` converter in ONNX, the input tensor` type is the `<class 'tvm.relay.expr.Var'>`. However, in the highlighted code, `len()` API is used to get the length of `var`, this can lead to crash.  ``` ... return relay.frontend.from_onnx(model, shape=shape_dict, **kwargs) File "/workplace/software/tvm/tvm/python/tvm/relay/frontend/onnx.py", line 7347, in from_onnx mod, params = g.from_onnx(graph, opset) File "/workplace/software/tvm/tvm/python/tvm/relay/frontend/onnx.py", line 6964, in from_onnx self._construct_nodes(graph) File "/workplace/software/tvm/tvm/python/tvm/relay/frontend/onnx.py", line 7079, in _construct_nodes op = self._convert_operator(op_name, inputs, attr, self.opset) File "/workplace/software/tvm/tvm/python/tvm/relay/frontend/onnx.py", line 7205, in _convert_operator sym = convert_map[op_name](inputs, attrs, self._params) File "/workplace/software/tvm/tvm/python/tvm/relay/frontend/onnx.py", line 6535, in _impl_v11 position = len(input_sequence) + position + 1 TypeError: object of type 'Var' has no len() ``` -- 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]
