Skip to content

Question re. ANE Usage with Flexible Input Shapes #1764

@rsomani95

Description

@rsomani95

❓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:

CleanShot 2023-02-09 at 18 46 12

Flexible input shape:

CleanShot 2023-02-09 at 18 46 15

Metadata

Metadata

Assignees

No one assigned

    Labels

    Core ML FrameworkAn issue related to the Core ML FrameworkquestionResponse providing clarification needed. Will not be assigned to a release. (type)

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions