Skip to content

Request for input shapes to be specified #2390

@danielliuce

Description

@danielliuce

Feature request

Currently,
optimum-cli does not provide a way to specify static input shapes, it defaults to dynamic shapes. Is there a way to make it possible to specify the input shape? If not, why do we not allow this?

An example would be:
optimum-cli export openvino --model microsoft/resnet-50 graph_convert -> optimum-cli export openvino --model microsoft/resnet-50 graph_convert --input [1, 3, 224, 224]

Motivation

Specifying a static shape in OpenVINO IR is nice to have for the Intel/Altera FPGA AI Suite toolchain which does not support dynamic input shapes of OpenVINO IR at the moment

Your contribution

Yes if possible or the green light is given that this is allowed.
Some modifications to the optimum_cli.py file here
would probably be needed

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions