-
Notifications
You must be signed in to change notification settings - Fork 659
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
Question re. ANE Usage with Flexible Input Shapes #1764
Comments
I think this is much more likely to be an issue with the Core ML Framework. At a high level the coremltools package takes a source model (i.e. a TensorFlow or PyTorch model) and converts that to MIL Ops. The Core ML Framework decides which devices (i.e. CPU, GPU, ANE) runs each op. For help with the Core ML Framework, you could post or search previous posts in the Apple Developer Forum. Submitting this issue via Feedback Assistant would also be good. Without steps to reproduce this issue, I don't think there is much we can do here. |
Filed internal report FB12038163 |
As discussed in #1763 , the model should continue to use ANE with |
It seems like just a single conv2d -> relu, when converted with enumerated shape creates dynamic tensors which runs on CPU. What is the best way to get EnumeratedShapes working with ANE?
|
❓Question
Not sure if this is a framework issue, or one with
coremltools
. My hunch is the latter, so I'm asking here.I've exported a model that requires a flexible input shape, and set the default shape to
1
. This model doesn't use the ANE at all, and only runs on CPU.Out of curiosity, I set the input shape to be fixed to
1
to see if the model would run faster. This model uses the GPU / ANE and is significantly faster. Does this mean that ANE usage is out of the window with flexible input shapes, or is there scope to redefine the model to allow it to use the ANE with flexible shapes too?Unfortunately, I cannot share the model definition publicly.
Fixed input shape:
Flexible input shape:
The text was updated successfully, but these errors were encountered: