Comparison of InputDescription and OutputDescription in SubGraph#4123
Comparison of InputDescription and OutputDescription in SubGraph#4123ilyachur merged 10 commits intoopenvinotoolkit:masterfrom elszkowski:compare_function-compare_subgraph
Conversation
inference-engine/tests/functional/inference_engine/transformations/compare_functions_test.cpp
Outdated
Show resolved
Hide resolved
inference-engine/tests/functional/inference_engine/transformations/compare_functions_test.cpp
Show resolved
Hide resolved
inference-engine/tests/ie_test_utils/common_test_utils/ngraph_test_utils.cpp
Show resolved
Hide resolved
ilyachur
left a comment
There was a problem hiding this comment.
This PR contains a lot of TODO marks. Can we implement these TODOs in this PR?
inference-engine/tests/ie_test_utils/common_test_utils/ngraph_test_utils.cpp
Show resolved
Hide resolved
inference-engine/tests/ie_test_utils/common_test_utils/ngraph_test_utils.cpp
Outdated
Show resolved
Hide resolved
inference-engine/tests/ie_test_utils/common_test_utils/ngraph_test_utils.cpp
Outdated
Show resolved
Hide resolved
inference-engine/tests/ie_test_utils/common_test_utils/ngraph_test_utils.cpp
Outdated
Show resolved
Hide resolved
inference-engine/tests/ie_test_utils/common_test_utils/ngraph_test_utils.cpp
Outdated
Show resolved
Hide resolved
inference-engine/tests/ie_test_utils/common_test_utils/ngraph_test_utils.cpp
Outdated
Show resolved
Hide resolved
inference-engine/tests/ie_test_utils/common_test_utils/ngraph_test_utils.cpp
Outdated
Show resolved
Hide resolved
inference-engine/tests/ie_test_utils/common_test_utils/ngraph_test_utils.cpp
Outdated
Show resolved
Hide resolved
inference-engine/tests/ie_test_utils/common_test_utils/ngraph_test_utils.cpp
Outdated
Show resolved
Hide resolved
inference-engine/tests/ie_test_utils/common_test_utils/ngraph_test_utils.cpp
Outdated
Show resolved
Hide resolved
inference-engine/tests/ie_test_utils/common_test_utils/ngraph_test_utils.cpp
Outdated
Show resolved
Hide resolved
inference-engine/tests/ie_test_utils/common_test_utils/ngraph_test_utils.cpp
Outdated
Show resolved
Hide resolved
inference-engine/tests/functional/inference_engine/transformations/compare_functions_test.cpp
Show resolved
Hide resolved
inference-engine/tests/ie_test_utils/common_test_utils/ngraph_test_utils.cpp
Outdated
Show resolved
Hide resolved
|
|
||
| if (description->get_type_info() == SubGraphOp::ConcatOutputDescription::type_info) { | ||
| /// | ||
| /// TODO shape calculation - required decent formula to check size from Slice |
There was a problem hiding this comment.
we need to know the count of iterations (m_iterations member in Loop/TensorIterator) to calculate the output shape correctly.
I guess this check shouldn't be a part of this Checker, we already have similar checks in validate_and_infer_type function of Loop/TI. @ilyachur @GlebKazantaev what do you think?
inference-engine/tests/ie_test_utils/common_test_utils/ngraph_test_utils.cpp
Outdated
Show resolved
Hide resolved
inference-engine/tests/ie_test_utils/common_test_utils/ngraph_test_utils.cpp
Outdated
Show resolved
Hide resolved
| } | ||
| } | ||
|
|
||
| void verify_else(const std::string& name, ngraph::ValueAccessor<void>& adapter) { |
There was a problem hiding this comment.
function name is confusing, it does not provide information of its purpose.
There was a problem hiding this comment.
It's not best name but for now I can't find any better.
verify_others will be fine?
| } else if (lhs->get_type_info() == SubGraphOp::InvariantInputDescription::type_info) { | ||
| return true; // noting extra to check | ||
| } | ||
|
|
There was a problem hiding this comment.
missing else{} statement for the exception handling, the same issue appears in other matching and equal methods.
There was a problem hiding this comment.
I'm not sure if extra else is required. Exception will be throw with or without else.
| m_num_iterations = ((std::abs(concat->m_end - concat->m_start)) / concat->m_part_size); | ||
| } | ||
| } | ||
| set_num_iteratrions_if_no_slice_inputs(); // TODO can be move to validate_and_infer_types |
There was a problem hiding this comment.
why adding TODO instead moving it to validate_and_infer_types?
There was a problem hiding this comment.
Because I want to discus this question in this review.
|
@ilyachur do you plan to merge this before CF or after ? I mean, can we expect new bugs discovered just before CF or not ;) |
I think it will be good to have the full picture. And if this PR will show new issues I think we should know about it. |
sdurawa
left a comment
There was a problem hiding this comment.
LGTM, one thing which can improve readability of the PR are comments, at least descriptions for classes and methods (lots of them are not self explanatory, ie 'verify_others', 'compare').
|
|
@ilyachur, all green now. |
Changes:
ngraph::Functions[inputs, parameters] and [outputs, result] comparison ->subgraph::compare_iongraph::FunctionSpecialBodyPortsfrom storageTicket 47693