You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Traceback (most recent call last):
File "/workspace/tpu-mlir/python/tools/model_transform.py", line 442, in <module>
tool.model_transform(args.mlir, args.add_postprocess, args.patterns_count)
File "/workspace/tpu-mlir/python/tools/model_transform.py", line 63, in model_transform
self.converter.generate_mlir(mlir_origin)
File "/workspace/tpu-mlir/python/transform/OnnxConverter.py", line 739, in generate_mlir
self.onnxop_factory.get(n.op_type, lambda x: NoneAndRaise(x))(n)
File "/workspace/tpu-mlir/python/transform/OnnxConverter.py", line 250, in <lambda>
"ReduceMax": lambda node: self.convert_reduce_op(node),
File "/workspace/tpu-mlir/python/transform/OnnxConverter.py", line 1909, in convert_reduce_op
op = self.getOperand(onnx_node.inputs[0])
File "/workspace/tpu-mlir/python/transform/BaseConverter.py", line 54, in getOperand
raise KeyError("operand {} not found".format(name))
KeyError: 'operand /Constant_2_output_0 not found'
报下面这个错误
但是我检查onnx节点时,发现是有/Constant_2_output_0这个输出节点的
用下面代码打印onnx节点
输出结果
可以看到是有Constant_2_output_0这个键的,但是还是报了 KeyError: 'operand /Constant_2_output_0 not found 这个错误
The text was updated successfully, but these errors were encountered: