-
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
[MO] Add support to moc_frontend of ":" as delimiter for --input and --output #6543
Merged
lazarevevgeny
merged 12 commits into
openvinotoolkit:master
from
nosovmik:mo/input_port
Jul 29, 2021
Merged
[MO] Add support to moc_frontend of ":" as delimiter for --input and --output #6543
lazarevevgeny
merged 12 commits into
openvinotoolkit:master
from
nosovmik:mo/input_port
Jul 29, 2021
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
nosovmik
requested review from
mvafin,
GlebKazantaev,
slyalin,
lazarevevgeny,
rkazants and
a team
July 6, 2021 14:26
nosovmik
changed the title
[MO] Add support to moc_frontend of ":" as delimiter for --input
[MO] Add support to moc_frontend of ":" as delimiter for --input and --output
Jul 6, 2021
openvino-pushbot
added
category: MO
Model Optimizer
category: Core
OpenVINO Core (aka ngraph)
labels
Jul 6, 2021
Additions: Changed default logic for 'Place::get_in(out)put_port' to return nullptr Changed default logic for 'InputModel::get_place_by_tensor(operation)_name' to return nullptr
rkazants
reviewed
Jul 7, 2021
rkazants
reviewed
Jul 12, 2021
rkazants
reviewed
Jul 12, 2021
# Conflicts: # ngraph/frontend/frontend_manager/include/frontend_manager/input_model.hpp # ngraph/frontend/frontend_manager/include/frontend_manager/place.hpp # ngraph/frontend/frontend_manager/src/frontend_manager.cpp # ngraph/test/frontend/frontend_manager.cpp
@lazarevevgeny @rkazants @mvafin can you please review this as MO developers? |
lazarevevgeny
suggested changes
Jul 28, 2021
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.
The logic in the MO code looks good. However, I have added a number of nitpick comments and raised a concern about hardcoding of test values in the unit test infrastructure code.
model-optimizer/unit_tests/mock_mo_frontend/mock_mo_ngraph_frontend/mock_mo_frontend.hpp
Outdated
Show resolved
Hide resolved
lazarevevgeny
approved these changes
Jul 28, 2021
rkazants
approved these changes
Jul 29, 2021
akuporos
pushed a commit
to akuporos/openvino
that referenced
this pull request
Jul 29, 2021
…--output (openvinotoolkit#6543) * [MO] Add support to moc_frontend of ":" as delimiter for --input Additions: Changed default logic for 'Place::get_in(out)put_port' to return nullptr Changed default logic for 'InputModel::get_place_by_tensor(operation)_name' to return nullptr * Corrected comments in code * Missing empty line * Clang format fixes * Fix review comments * Updated test to verify review comments fixes * Update unit tests after rebase * Apply review comments
rnugmanx
pushed a commit
to rnugmanx/openvino
that referenced
this pull request
Aug 26, 2021
…--output (openvinotoolkit#6543) * [MO] Add support to moc_frontend of ":" as delimiter for --input Additions: Changed default logic for 'Place::get_in(out)put_port' to return nullptr Changed default logic for 'InputModel::get_place_by_tensor(operation)_name' to return nullptr * Corrected comments in code * Missing empty line * Clang format fixes * Fix review comments * Updated test to verify review comments fixes * Update unit tests after rebase * Apply review comments
andrei-cv
pushed a commit
to andrei-cv/openvino
that referenced
this pull request
Aug 30, 2021
…--output (openvinotoolkit#6543) * [MO] Add support to moc_frontend of ":" as delimiter for --input Additions: Changed default logic for 'Place::get_in(out)put_port' to return nullptr Changed default logic for 'InputModel::get_place_by_tensor(operation)_name' to return nullptr * Corrected comments in code * Missing empty line * Clang format fixes * Fix review comments * Updated test to verify review comments fixes * Update unit tests after rebase * Apply review comments
akuporos
pushed a commit
to akuporos/openvino
that referenced
this pull request
Sep 29, 2021
…--output (openvinotoolkit#6543) * [MO] Add support to moc_frontend of ":" as delimiter for --input Additions: Changed default logic for 'Place::get_in(out)put_port' to return nullptr Changed default logic for 'InputModel::get_place_by_tensor(operation)_name' to return nullptr * Corrected comments in code * Missing empty line * Clang format fixes * Fix review comments * Updated test to verify review comments fixes * Update unit tests after rebase * Apply review comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Details:
[MO] Add support to moc_frontend of ":" as delimiter for --input
For input like "0:1" the following possibilities are considered according to discussion:
Collisions are detected using 'Place.is_equal_data' to check if place points to same data or not
Error codes are inherited from original 'extractor' implementation
Additional changes:
Changed default logic for 'Place::get_in(out)put_port' to return nullptr
Changed default logic for 'InputModel::get_place_by_tensor(operation)_name' to return nullptr
Ticket: 59409
Code:
Validation:
Documentation:
Validation
A number of unit tests were implemented for 'moc_frontend/extractor'. Tests (15 in total) cover all possible scenarios when legacy style with ":" is used