Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

onnx deployment fail #761

Closed
tianyashu2020 opened this issue Mar 21, 2024 · 7 comments
Closed

onnx deployment fail #761

tianyashu2020 opened this issue Mar 21, 2024 · 7 comments
Assignees

Comments

@tianyashu2020
Copy link

I tried to use armnn to deploy my onnx model,but failed. Could anyone help me?
image

@tianyashu2020
Copy link
Author

terminate called after throwing an instance of 'armnn::ParseException'
what(): Unsupported operation Transpose for node '/Transpose' at function LoadGraph [/home/shuqinjun/arm_nn/armnn/build-tool/scripts/source/armnn/src/armnnOnnxParser/OnnxParser.cpp:966]
Aborted (core dumped)

@catcor01
Copy link
Collaborator

Hello @tianyashu2020,

It seems you are using build-tool. Are you running the model through ExecuteNetwork? You might be able provide details how you are running the model including target backend, ArmNN SHA/branch and details about the Transpose operator that is failing in your model. Additionally, if the model is publicly available, please post a link to it here and I can attempt to reproduce it.

@tianyashu2020
Copy link
Author

Hello @tianyashu2020,

It seems you are using build-tool. Are you running the model through ExecuteNetwork? You might be able provide details how you are running the model including target backend, ArmNN SHA/branch and details about the Transpose operator that is failing in your model. Additionally, if the model is publicly available, please post a link to it here and I can attempt to reproduce it.

hello,this is my code,I compiled the armnn so lib in my X64 platform,using ubuntu 22.04 operating system,
I just want to test my model in "armnn::Compute::CpuRef" mannaer.

the attached file is my onnx model.

tru_net_phase_32k_no_dereverb_sim.zip

image
image

@catcor01
Copy link
Collaborator

Hello,

Thank you for your reply. Unfortunately, I am restricted in downloading user supplied models and can only interact with models that are publicly available under an appropriate license. Would the model be available somewhere? Else, if you could supply me with the operator info such as datatype etc. I can find more into why it is not supported on our side.

@catcor01 catcor01 self-assigned this Mar 25, 2024
@catcor01
Copy link
Collaborator

catcor01 commented Mar 25, 2024

Hello @tianyashu2020,

I have investigated this issue more and discovered that Transpose support has not been added to the ONNX parser. I have brought this up with the team and the work to add this support is on our radar but has not been prioritized in the near future. I can make 2 suggestions to get things running on your side:

  • Convert the onnx model to tflite and run through our tflite parser or delegate.
  • If you want to try to add support for Tanspose to the ONNX parser we do welcome contributions. For more information on contributing to ArmNN please see the Contributing page on the MLPlatform.org website, or see the Contributor Guide.

Kind Regards,
Cathal.

@catcor01
Copy link
Collaborator

catcor01 commented Apr 3, 2024

Hello again,

I just wanted to suggest you can use ONNX runtime with ACL as an option to accelerate your model also. See here: https://onnxruntime.ai/docs/execution-providers/community-maintained/ACL-ExecutionProvider.html.

Kind Regards,
Cathal.

@tianyashu2020
Copy link
Author

@catcor01 problem fixed,the reason is the transpose with groups parameter in my model is not supported, I fixed the transpose operator,it worked
very thanks for you reply

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants