From 64f14c73eb45b0b47ddf89145c59ac3e9e789538 Mon Sep 17 00:00:00 2001 From: Roman Kazantsev Date: Wed, 8 Dec 2021 14:19:15 +0300 Subject: [PATCH] Use ov namespace Signed-off-by: Roman Kazantsev --- .../mkldnn_plugin/nodes/mkldnn_detection_output_node.cpp | 8 ++++---- .../mkldnn_plugin/nodes/mkldnn_detection_output_node.h | 4 ++-- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/inference-engine/src/mkldnn_plugin/nodes/mkldnn_detection_output_node.cpp b/inference-engine/src/mkldnn_plugin/nodes/mkldnn_detection_output_node.cpp index a391eb91511..3d5e8a24744 100644 --- a/inference-engine/src/mkldnn_plugin/nodes/mkldnn_detection_output_node.cpp +++ b/inference-engine/src/mkldnn_plugin/nodes/mkldnn_detection_output_node.cpp @@ -31,9 +31,9 @@ bool SortScorePairDescend>(const std::pair& op, std::string& errorMessage) noexcept { +bool MKLDNNDetectionOutputNode::isSupportedOperation(const std::shared_ptr& op, std::string& errorMessage) noexcept { try { - const auto doOp = ngraph::as_type_ptr(op); + const auto doOp = ov::as_type_ptr(op); if (!doOp) { errorMessage = "Node is not an instance of the DetectionOutput from the operations set v8."; return false; @@ -57,7 +57,7 @@ void MKLDNNDetectionOutputNode::createPrimitive() { } } -MKLDNNDetectionOutputNode::MKLDNNDetectionOutputNode(const std::shared_ptr& op, const mkldnn::engine& eng, +MKLDNNDetectionOutputNode::MKLDNNDetectionOutputNode(const std::shared_ptr& op, const mkldnn::engine& eng, MKLDNNWeightsSharing::Ptr &cache) : MKLDNNNode(op, eng, cache) { std::string errorMessage; if (!isSupportedOperation(op, errorMessage)) { @@ -72,7 +72,7 @@ MKLDNNDetectionOutputNode::MKLDNNDetectionOutputNode(const std::shared_ptr(op); + auto doOp = ov::as_type_ptr(op); auto attributes = doOp->get_attrs(); backgroundClassId = attributes.background_label_id; diff --git a/inference-engine/src/mkldnn_plugin/nodes/mkldnn_detection_output_node.h b/inference-engine/src/mkldnn_plugin/nodes/mkldnn_detection_output_node.h index 16c9daad822..41fc5478328 100644 --- a/inference-engine/src/mkldnn_plugin/nodes/mkldnn_detection_output_node.h +++ b/inference-engine/src/mkldnn_plugin/nodes/mkldnn_detection_output_node.h @@ -12,7 +12,7 @@ namespace MKLDNNPlugin { class MKLDNNDetectionOutputNode : public MKLDNNNode { public: - MKLDNNDetectionOutputNode(const std::shared_ptr& op, const mkldnn::engine& eng, MKLDNNWeightsSharing::Ptr &cache); + MKLDNNDetectionOutputNode(const std::shared_ptr& op, const mkldnn::engine& eng, MKLDNNWeightsSharing::Ptr &cache); void getSupportedDescriptors() override {}; void initSupportedPrimitiveDescriptors() override; @@ -20,7 +20,7 @@ public: void execute(mkldnn::stream strm) override; bool created() const override; - static bool isSupportedOperation(const std::shared_ptr& op, std::string& errorMessage) noexcept; + static bool isSupportedOperation(const std::shared_ptr& op, std::string& errorMessage) noexcept; protected: void prepareParams() override;