-
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
[GNA] Support for cascade concat with non functional layers #598
[GNA] Support for cascade concat with non functional layers #598
Conversation
f13f779
to
78fb0fd
Compare
78fb0fd
to
a0da4d0
Compare
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.
Looks good just some minor comments.
@@ -550,6 +550,23 @@ void GNAGraphCompiler::ConcatPrimitive(InferenceEngine::CNNLayerPtr layer) { | |||
auto& concatLayerInfo = concat_connection.find(concatLayer->name)->second; | |||
for (auto &&outLayer : concatLayer->outData.front()->getInputTo()) { | |||
if ( LayerInfo(outLayer.second).isConcat() ) { | |||
auto concatCadidate = outLayer.second; |
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.
Typo here
#include <memory> | ||
#include "functional_test_utils/layer_test_utils.hpp" | ||
#include "ngraph_functions/builders.hpp" | ||
#include "ngraph_functions/utils/ngraph_helpers.hpp" |
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.
I'm sorry but do you actually use something form ngraph_helpers.hpp
here in this header?
#include <string> | ||
#include <vector> | ||
#include <memory> | ||
#include <debug.h> |
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.
Why do we need this?
const_concat2->output(0)}, | ||
0); | ||
auto const_mul = ngraph::builder::makeConstant(ngPrc, ngraph::Shape{1}, std::vector<float>{-1.0f}); | ||
auto mult = std::make_shared<ngraph::opset1::Multiply>(input[0], const_mul); |
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.
For consistency I can suggest your to use const_mul
and mul
or const_mult
and mult
function = std::make_shared<ngraph::Function>(mult, input, "concat_reshape_reshape_concat_mul"); | ||
} | ||
|
||
TEST_P(ConcatReshapeReshapeConcatMul, CompareWithRefs){ |
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.
why we are not creating unit tests at all? Functional test to me only should happen if fight with accuracy. And event than it is questionable.
if (!CNNNetHasNextLayerSkipCertain(concatCadidate, 0, 0, isNonFunctional)) { | ||
continue; | ||
} | ||
concatCadidate = CNNNetGetNextLayerSkipCertain(concatCadidate, 0, 0, isNonFunctional).first; |
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.
what if there will be non linear subgraph of reshapes? What functional layer will be ended up with?
Create a case concat->reshape->(out:0)affine, (out:1 )concat
59721ac
to
2e75b62
Compare
0932d40
to
3b5b328
Compare
inference-engine/tests/functional/plugin/shared/src/subgraph_tests/cascade_concat.cpp
Show resolved
Hide resolved
3b5b328
to
eee8614
Compare
inference-engine/tests/functional/plugin/shared/src/subgraph_tests/cascade_concat.cpp
Outdated
Show resolved
Hide resolved
eee8614
to
52b79bb
Compare
52b79bb
to
0d1e0e7
Compare
0d1e0e7
to
e12b804
Compare
…oncats [GNA] Support for cascade concat with non functional layers between concats [GNA] Support for cascade concat with non functional layers between concats fix discussion medn test delete commet Rework test minor fix last fix Test Align filter fix discussion
e12b804
to
075ae03
Compare
…oncats (openvinotoolkit#598) [GNA] Support for cascade concat with non functional layers between concats
…oncats (openvinotoolkit#598) [GNA] Support for cascade concat with non functional layers between concats
…it#598) * Modify OPENVINO_OP using, caused by deprecated version Signed-off-by: xuejun <[email protected]> * Fix review comments Signed-off-by: xuejun <[email protected]> --------- Signed-off-by: xuejun <[email protected]> Co-authored-by: Ilya Lavrenov <[email protected]>
Support for cascade concat with non functional layers between concats.
Added tests for cascade concat