onnxruntime-riscv icon indicating copy to clipboard operation
onnxruntime-riscv copied to clipboard

"Unsupport type" error in running an onnx model

Open Heresyrac opened this issue 2 years ago • 11 comments

Describe the bug I am trying to use run onnx models on gemmini by spike. I have successfully run the inference on googlenet_quantized.onnx and mobilenet_quantized.onnx, but failed in [resnet50_opt_quant.onnx] and suggest 'Unsupport type' when 'Called into systolic add'. In CmakeLists.txt, I set the fp32 off and int8 on. What is the problem? Urgency none System information

  • OS Platform and Distribution (e.g., Linux Ubuntu 16.04):Linux Ubuntu 18.04

  • ONNX Runtime installed from (source or binary): source

  • ONNX Runtime version: branch 2021-12-23

  • Python version:3.6.9

  • Visual Studio version (if applicable):

  • GCC/Compiler version (if compiling from source):

  • CUDA/cuDNN version:

  • GPU model and memory:

To Reproduce

  • Describe steps/code to reproduce the behavior. I change the CMakeList to fp32 off and int8 on, rebuild the ORT and ORT_TEST spike --extension=gemmini pk ort_test -m resnet50_opt_quant.onnx -i images/cat.jpg -p caffe2 -x 1 -O 0

  • Attach the ONNX model to the issue (where applicable) to expedite investigation. The released model :resnet50_opt_quant.onnx Expected behavior A clear and concise description of what you expected to happen.

Screenshots 1

Additional context

Heresyrac avatar Apr 10 '22 11:04 Heresyrac