Open hanmoly opened 1 year ago
@llvm/issue-subscribers-mlir-python
@hanmoly, do you have the contents of the glm_block_cache_0_origin.mlir
file? I suspect this issue is hard to reproduce without that file.
The error is in tpu_mlir::top::ReshapeOp::shape_inference()
, that does not seem like upstream code?
And it isn't related to python, it looks like your downstream python runs your tpuc-opt
executable, which crashes. Upstream MLIR can't help here.
I encountered the same problem. Later I set the input_shape
of model_transform.py
to the same size as the onnx model, and the error disappeared.