Skip to content
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

Open
wants to merge 23 commits into
base: master
Choose a base branch
from

Conversation

SeptimiuIoachimNeagaIntel
Copy link
Contributor

@SeptimiuIoachimNeagaIntel SeptimiuIoachimNeagaIntel commented Nov 5, 2024

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.

@SeptimiuIoachimNeagaIntel SeptimiuIoachimNeagaIntel requested review from kblaszczak-intel and removed request for a team November 5, 2024 08:11
@github-actions github-actions bot added category: docs OpenVINO documentation category: NPU OpenVINO NPU plugin labels Nov 5, 2024
@sys-openvino-ci sys-openvino-ci added the ExternalPR External contributor label Nov 5, 2024
Copy link
Contributor

@TolyaTalamanov TolyaTalamanov left a 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/README.md Outdated Show resolved Hide resolved
src/plugins/intel_npu/tools/protopipe/README.md Outdated Show resolved Hide resolved
TolyaTalamanov
TolyaTalamanov approved these changes Nov 12, 2024
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);
Copy link
Contributor

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

Copy link
Contributor Author

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

Copy link
Contributor

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

Copy link
Contributor Author

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.

Copy link
Contributor

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.

@TolyaTalamanov
Copy link
Contributor

Please also update description of this PR to reflect what changes have been made

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
category: docs OpenVINO documentation category: NPU OpenVINO NPU plugin ExternalPR External contributor
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants