Skip to content

Commit

Permalink
Remove height and width from default shapes pre-configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
mvafin committed Jan 8, 2025
1 parent 58aec63 commit 32725ca
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions optimum/exporters/openvino/convert.py
Original file line number Diff line number Diff line change
Expand Up @@ -664,6 +664,9 @@ def export_from_model(
# Get the shapes to be used to generate dummy inputs
input_shapes = {}
for input_name in DEFAULT_DUMMY_SHAPES.keys():
if input_name in ["height", "width"]:
# use H and W from generator defaults
continue
input_shapes[input_name] = (
kwargs_shapes[input_name] if input_name in kwargs_shapes else DEFAULT_DUMMY_SHAPES[input_name]
)
Expand Down

0 comments on commit 32725ca

Please sign in to comment.