fix compilation errors caused by namespace

related: #25199
pull/25987/head
Aven 6 months ago
parent 95041f5e65
commit 796974cccc
  1. 2
      modules/dnn/src/layers/elementwise_layers.cpp
  2. 2
      modules/dnn/src/layers/nary_eltwise_layers.cpp

@ -932,7 +932,7 @@ struct GeluFunctor : public BaseFunctor {
#endif #endif
#ifdef HAVE_DNN_NGRAPH #ifdef HAVE_DNN_NGRAPH
std::shared_ptr<ngraph::Node> initNgraphAPI(const ngraph::Output<ngraph::Node>& node) std::shared_ptr<ov::Node> initNgraphAPI(const ov::Output<ov::Node>& node)
{ {
return std::make_shared<ov::op::v0::Gelu>(node); return std::make_shared<ov::op::v0::Gelu>(node);
} }

@ -1006,7 +1006,7 @@ public:
// In case only one input // In case only one input
if (inputs.size() == 1) { if (inputs.size() == 1) {
auto &ieInpNode = nodes[0].dynamicCast<InfEngineNgraphNode>()->node; auto &ieInpNode = nodes[0].dynamicCast<InfEngineNgraphNode>()->node;
ngraph::OutputVector inp{ieInpNode}; ov::OutputVector inp{ieInpNode};
auto blank = std::make_shared<ov::op::v0::Concat>(inp, 0); auto blank = std::make_shared<ov::op::v0::Concat>(inp, 0);
return Ptr<BackendNode>(new InfEngineNgraphNode(blank)); return Ptr<BackendNode>(new InfEngineNgraphNode(blank));
} }

Loading…
Cancel
Save