nncase icon indicating copy to clipboard operation
nncase copied to clipboard

onnx文件转换异常:Floating point exception (core dumped)

Open szgaozg opened this issue 5 years ago • 3 comments

Describe the bug paddle模型转换过来的onnx文件,使用ncc转换成kmodel时出现异常。异常位置: Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1". Core was generated by `./bin/ncc compile -i onnx -t cpu ../../model.onnx model.kmodel'. Program terminated with signal SIGFPE, Arithmetic exception. #0 0x00007fdd324e862b in nncase::ir::normalize_reshape (in_shape=..., new_shape=...) at /home/gaozg/work/nncase/include/nncase/ir/op_utils.h:152 152 result[*non_det_id] = xt::compute_size(in_shape) / shape_size;

To Reproduce Command line or scripts to reproduce the behavior:

Expected behavior ncc compile -i onnx -t cpu ../../model.onnx model.kmodel

Origin model and code [ssdlite_mobilenet_v3_small]

Environment (please complete the following information):

  • OS: [e.g. Ubuntu20.04]
  • nncase version [e.g. v1.0.0.dev24]
  • DL Framework [e.g. Paddle2.1]

Additional context 异常转换onnx文件 model.zip

szgaozg avatar Oct 14 '21 10:10 szgaozg

The dim value of three input shapes should not be -1

zhangyang2057 avatar Oct 18 '21 03:10 zhangyang2057

Is there any update?

zhangyang2057 avatar Nov 18 '21 02:11 zhangyang2057

No reply for a long time. Close it.

zhangyang2057 avatar Nov 23 '21 01:11 zhangyang2057