mirror of
https://github.com/opencv/opencv.git
synced 2025-06-08 01:53:19 +08:00
parent
95041f5e65
commit
796974cccc
@ -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…
Reference in New Issue
Block a user