-
Notifications
You must be signed in to change notification settings - Fork 2.3k
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
Support for model reshape in protopipe #27398
base: master
Are you sure you want to change the base?
Support for model reshape in protopipe #27398
Conversation
src/plugins/intel_npu/tools/protopipe/src/simulation/ov_layers_reader.cpp
Outdated
Show resolved
Hide resolved
src/plugins/intel_npu/tools/protopipe/src/simulation/ov_layers_reader.cpp
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please separate README.md update changes from this PR
src/plugins/intel_npu/tools/protopipe/src/simulation/ov_layers_reader.cpp
Outdated
Show resolved
Hide resolved
03af6b0
to
b775841
Compare
src/plugins/intel_npu/tools/protopipe/src/simulation/layers_reader.cpp
Outdated
Show resolved
Hide resolved
src/plugins/intel_npu/tools/protopipe/src/simulation/layers_reader.cpp
Outdated
Show resolved
Hide resolved
src/plugins/intel_npu/tools/protopipe/src/simulation/ov_layers_reader.cpp
Outdated
Show resolved
Hide resolved
src/plugins/intel_npu/tools/protopipe/src/simulation/ov_layers_reader.cpp
Outdated
Show resolved
Hide resolved
src/plugins/intel_npu/tools/protopipe/src/simulation/layers_reader.cpp
Outdated
Show resolved
Hide resolved
return getOVReader().readLayers(ov, true /* use_results_names */); | ||
auto inOutLayers = getOVReader().readLayers(ov, true /* use_results_names */); | ||
adjustDynamicDims(inOutLayers.in_layers); | ||
adjustDynamicDims(inOutLayers.out_layers); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It would be strange to see data will be provided as input
if you call this function on output
layers
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Function no longer called for output layers. I was never sure it was required
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
But seems it does. If output layer has -1
it will be impossible to allocate memory for this buffer
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
With or without updating output layer I saw no difference in the result.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Simply because your model don't have dynamic shapes for outputs.
Please also update description of this PR to reflect what changes have been made |
Details:
Support for model reshape in protopipe
Added new OpenVINO parameter in config.yaml
-reshape
able to reshape input layers.For ONNX models dynamic dimensions are set to
1
. This is consistent with the behavior of onnxruntime_perf_test.