Fix build issue with namespace conflicts

Signed-off-by: Roman Kazantsev <roman.kazantsev@intel.com>
This commit is contained in:
Roman Kazantsev
2021-11-02 14:32:53 +03:00
parent 70d3e687da
commit 50a189f4e5
2 changed files with 8 additions and 7 deletions

View File

@@ -99,7 +99,7 @@ bool conv_callback(ngraph::pattern::Matcher &m) {
auto expected_shape = Shape(output_rank, 1);
expected_shape[1] = channel_dim;
if (op::util::check_for_broadcast(expected_shape, const_shape)) {
if (ngraph::op::util::check_for_broadcast(expected_shape, const_shape)) {
return false;
}
@@ -107,7 +107,7 @@ bool conv_callback(ngraph::pattern::Matcher &m) {
// the number of weights dimensions.
Output<Node> final_const = m_const;
if (is_scalar_multiplier) {
final_const = op::util::broadcastTo(m_const, expected_shape);
final_const = ngraph::op::util::broadcastTo(m_const, expected_shape);
}
if (final_const.get_shape().size() > 1) {

View File

@@ -19,7 +19,7 @@
using namespace ngraph;
using namespace std;
class InitNMSPath: public pass::MatcherPass {
class InitNMSPath: public ngraph::pass::MatcherPass {
public:
NGRAPH_RTTI_DECLARATION;
@@ -46,7 +46,7 @@ public:
NGRAPH_RTTI_DEFINITION(InitNMSPath, "InitNMSPath", 0);
class PropagateNMSPath: public pass::MatcherPass {
class PropagateNMSPath : public ngraph::pass::MatcherPass {
public:
NGRAPH_RTTI_DECLARATION;
@@ -81,7 +81,7 @@ public:
NGRAPH_RTTI_DEFINITION(PropagateNMSPath, "PropagateNMSPath", 0);
class UpdateConvertGather: public pass::MatcherPass {
class UpdateConvertGather : public ngraph::pass::MatcherPass {
public:
NGRAPH_RTTI_DECLARATION;
@@ -117,10 +117,11 @@ public:
NGRAPH_RTTI_DEFINITION(UpdateConvertGather, "UpdateConvertGather", 0);
pass::ConvertNmsGatherPathToUnsigned::ConvertNmsGatherPathToUnsigned() {
ngraph::pass::ConvertNmsGatherPathToUnsigned::ConvertNmsGatherPathToUnsigned() {
add_matcher<InitNMSPath>();
add_matcher<PropagateNMSPath>();
add_matcher<UpdateConvertGather>();
}
NGRAPH_RTTI_DEFINITION(pass::ConvertNmsGatherPathToUnsigned, "ConvertNmsGatherPathToUnsigned", 0);
NGRAPH_RTTI_DEFINITION(ngraph::pass::ConvertNmsGatherPathToUnsigned,
"ConvertNmsGatherPathToUnsigned", 0);