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

Neural Engine usage #36

Open
Weihaooooooo opened this issue Nov 9, 2023 · 0 comments
Open

Neural Engine usage #36

Weihaooooooo opened this issue Nov 9, 2023 · 0 comments

Comments

@Weihaooooooo
Copy link

Hello,

Thanks so much for your conversion script and models. I enjoyed them a lot.

I am trying to deploy a U2Net model for on-device usage on an iPhone. However, I am not able to run the model on the neural engine.

The error message I got is:

doUnloadModel:options:qos:error:: model=_ANEModel: .....

I am aware of that the input needs to be fixed for the model to run on the neural engine. And apparently, the U2Net model has a fixed input of (1, 3, 320, 320).

Also, by openning the .mlmodel file in xcode. I am able to run the model on CPU, GPU, Neural engine respectively for generating the performance report. The image below shows the model can be run fully on the neural engine when compute unit is set to 'all'.

image

These got me more confused on how to run the model on iphone's neural engine within an compiled app. Are you able to run the models on neural engine? if so, would you be able to provide any advice on this?

Thanks again in advance!

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

1 participant