-
Notifications
You must be signed in to change notification settings - Fork 2.9k
Remove deprecated IE output name functions from utils #33139
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
base: master
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
|
@@ -8,7 +8,6 @@ | |||||||||||||
| #include "openvino/runtime/iasync_infer_request.hpp" | ||||||||||||||
| #include "openvino/runtime/iplugin.hpp" | ||||||||||||||
| #include "openvino/runtime/properties.hpp" | ||||||||||||||
| #include "transformations/utils/utils.hpp" | ||||||||||||||
|
|
||||||||||||||
| #if defined(OPENVINO_GNU_LIBC) && !defined(__ANDROID__) | ||||||||||||||
| # include <malloc.h> | ||||||||||||||
|
|
@@ -84,9 +83,10 @@ ov::ICompiledModel::ICompiledModel(const std::shared_ptr<const ov::Model>& model | |||||||||||||
| for (const auto& result : model->get_results()) { | ||||||||||||||
| auto fake_param = std::make_shared<ov::op::v0::Parameter>(result->get_output_element_type(0), | ||||||||||||||
| result->get_output_partial_shape(0)); | ||||||||||||||
| OPENVINO_SUPPRESS_DEPRECATED_START | ||||||||||||||
| const std::string res_name = ov::op::util::create_ie_output_name(result->input_value(0)); | ||||||||||||||
| OPENVINO_SUPPRESS_DEPRECATED_END | ||||||||||||||
| const auto& prev_layer = result->input_value(0).get_node_shared_ptr(); | ||||||||||||||
| const std::string res_name = | ||||||||||||||
| prev_layer->get_friendly_name() + | ||||||||||||||
| (prev_layer->get_output_size() != 1 ? "." + std::to_string(result->input_value(0).get_index()) : ""); | ||||||||||||||
| fake_param->set_friendly_name(res_name); | ||||||||||||||
|
Comment on lines
+86
to
90
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
Can be this helper be used instead? There is also util function @CuriousPanCake
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Yes, the format matters. The code uses The The same
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The |
||||||||||||||
| fake_param->set_element_type(result->get_element_type()); | ||||||||||||||
| fake_param->validate_and_infer_types(); | ||||||||||||||
|
|
||||||||||||||
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.
Do we need to add this import? It looks like we only remove code from this file, no?
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.
Yes, the include is needed. We removed
#include "transformations/utils/utils.hpp"which transitively includedopenvino/core/rt_info.hpp. This file usesov::copy_runtime_info(lines 54, 154, 166), so we need to add the direct include.