-
Notifications
You must be signed in to change notification settings - Fork 2.4k
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
[core] Util to set (auto) names on model's input, output tensors #28975
[core] Util to set (auto) names on model's input, output tensors #28975
Conversation
Signed-off-by: Raasz, Pawel <pawel.raasz@intel.com>
Signed-off-by: Raasz, Pawel <pawel.raasz@intel.com>
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.
LGTM in general
Signed-off-by: Raasz, Pawel <pawel.raasz@intel.com>
…ate-input-output-model-names
Signed-off-by: Raasz, Pawel <pawel.raasz@intel.com>
Signed-off-by: Raasz, Pawel <pawel.raasz@intel.com>
Signed-off-by: Raasz, Pawel <pawel.raasz@intel.com>
Signed-off-by: Raasz, Pawel <pawel.raasz@intel.com>
…ate-input-output-model-names
template <class... Args> | ||
std::shared_ptr<ov::Model> make_model_with_tensor_names(Args&&... args) { | ||
auto model = std::make_shared<ov::Model>(std::forward<Args>(args)...); | ||
ov::util::set_tensors_names(ov::AUTO, *model); |
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.
Am I right that each output node will have a name?
I am asking in the context of the issue in js api, when output.get_any_name()
fails.
Or here are also problems with resolving names collisions
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.
Is added only for python API, only model input and outputs will have tensor names when created with python API.
Similar approach can be used in other binding, but there is plan to add in C++ API, but now is not possible yet
Details:
Tickets: