From 02aa0b9bbc2a7e93ada3ef58a236d73c8bfa45ee Mon Sep 17 00:00:00 2001 From: Ilya Churaev Date: Mon, 26 Jul 2021 14:37:43 +0300 Subject: [PATCH] Fixed comments --- inference-engine/include/cpp/ie_cnn_network.h | 2 +- inference-engine/include/ie_icnn_network.hpp | 2 +- inference-engine/include/ie_iextension.h | 2 +- inference-engine/include/ie_parameter.hpp | 2 +- .../samples/hello_reshape_ssd/reshape_ssd_extension.hpp | 3 +-- inference-engine/src/inference_engine/CMakeLists.txt | 2 +- .../functional/inference_engine/ngraph_reader/abs_tests.cpp | 3 +-- .../tests/functional/plugin/cpu/extension/extension.cpp | 3 +-- ngraph/core/include/ngraph/op/abs.hpp | 6 +----- ngraph/core/include/ngraph/op/acos.hpp | 6 +----- ngraph/core/include/ngraph/op/acosh.hpp | 6 +----- ngraph/core/include/ngraph/op/asin.hpp | 6 +----- ngraph/core/include/ngraph/op/asinh.hpp | 6 +----- ngraph/core/include/ngraph/op/atan.hpp | 6 +----- ngraph/core/include/ngraph/op/atanh.hpp | 6 +----- ngraph/core/include/ngraph/op/ceiling.hpp | 6 +----- ngraph/core/include/ngraph/op/embedding_segments_sum.hpp | 6 +----- 17 files changed, 17 insertions(+), 56 deletions(-) diff --git a/inference-engine/include/cpp/ie_cnn_network.h b/inference-engine/include/cpp/ie_cnn_network.h index 01d044dfa2939d..ef73b67e504e57 100644 --- a/inference-engine/include/cpp/ie_cnn_network.h +++ b/inference-engine/include/cpp/ie_cnn_network.h @@ -20,7 +20,7 @@ #include "ie_common.h" #include "ie_data.h" #include "ie_extension.h" -#include +#include namespace InferenceEngine { diff --git a/inference-engine/include/ie_icnn_network.hpp b/inference-engine/include/ie_icnn_network.hpp index 3e0efeffa9b2b4..62ef93824eeeea 100644 --- a/inference-engine/include/ie_icnn_network.hpp +++ b/inference-engine/include/ie_icnn_network.hpp @@ -18,7 +18,7 @@ #include "ie_data.h" #include "ie_input_info.hpp" -#include +#include namespace InferenceEngine { diff --git a/inference-engine/include/ie_iextension.h b/inference-engine/include/ie_iextension.h index e40f3985f1c494..be327c1537648c 100644 --- a/inference-engine/include/ie_iextension.h +++ b/inference-engine/include/ie_iextension.h @@ -19,7 +19,7 @@ #include "ie_layouts.h" #include "ie_blob.h" #include "ie_version.hpp" -#include +#include /** * @def INFERENCE_EXTENSION_API(TYPE) diff --git a/inference-engine/include/ie_parameter.hpp b/inference-engine/include/ie_parameter.hpp index a303418c0d2e8c..b90d6f1ef345b2 100644 --- a/inference-engine/include/ie_parameter.hpp +++ b/inference-engine/include/ie_parameter.hpp @@ -20,7 +20,7 @@ #include #include "ie_blob.h" -#include +#include namespace InferenceEngine { diff --git a/inference-engine/samples/hello_reshape_ssd/reshape_ssd_extension.hpp b/inference-engine/samples/hello_reshape_ssd/reshape_ssd_extension.hpp index 523eee3b6a67e5..1e6ae59bf6fa0b 100644 --- a/inference-engine/samples/hello_reshape_ssd/reshape_ssd_extension.hpp +++ b/inference-engine/samples/hello_reshape_ssd/reshape_ssd_extension.hpp @@ -109,8 +109,7 @@ class CustomReluOp : public ngraph::op::Op { return std::make_shared(new_args.at(0)); } - bool visit_attributes(ngraph::AttributeVisitor& visitor) override { - (void)visitor; + bool visit_attributes(ngraph::AttributeVisitor&) override { return true; } }; diff --git a/inference-engine/src/inference_engine/CMakeLists.txt b/inference-engine/src/inference_engine/CMakeLists.txt index 715622ba6aa373..51bb0fb8a60506 100644 --- a/inference-engine/src/inference_engine/CMakeLists.txt +++ b/inference-engine/src/inference_engine/CMakeLists.txt @@ -217,7 +217,7 @@ set_target_properties(${TARGET_NAME} ${TARGET_NAME}_obj ${TARGET_NAME}_s # Export for build tree -export(TARGETS ${NGRAPH_LIBRARIES} ${TARGET_NAME} NAMESPACE IE:: +export(TARGETS ${TARGET_NAME} NAMESPACE IE:: APPEND FILE "${CMAKE_BINARY_DIR}/InferenceEngineTargets.cmake") # Export for developer package diff --git a/inference-engine/tests/functional/inference_engine/ngraph_reader/abs_tests.cpp b/inference-engine/tests/functional/inference_engine/ngraph_reader/abs_tests.cpp index 67f783931c493e..add8234e22a2b1 100644 --- a/inference-engine/tests/functional/inference_engine/ngraph_reader/abs_tests.cpp +++ b/inference-engine/tests/functional/inference_engine/ngraph_reader/abs_tests.cpp @@ -23,8 +23,7 @@ class FakeAbs : public ngraph::op::Op { std::shared_ptr clone_with_new_inputs(const ngraph::OutputVector& new_args) const override { return std::make_shared(new_args.at(0)); } - bool visit_attributes(ngraph::AttributeVisitor& visitor) override { - (void) visitor; + bool visit_attributes(ngraph::AttributeVisitor&) override { return true; } }; diff --git a/inference-engine/tests/functional/plugin/cpu/extension/extension.cpp b/inference-engine/tests/functional/plugin/cpu/extension/extension.cpp index 56bf2cbd0158c0..25e88eee0dfaec 100644 --- a/inference-engine/tests/functional/plugin/cpu/extension/extension.cpp +++ b/inference-engine/tests/functional/plugin/cpu/extension/extension.cpp @@ -89,8 +89,7 @@ class CustomAbs : public ngraph::op::Op { std::shared_ptr clone_with_new_inputs(const ngraph::OutputVector& new_args) const override { return std::make_shared(new_args.at(0)); } - bool visit_attributes(ngraph::AttributeVisitor& visitor) override { - (void) visitor; + bool visit_attributes(ngraph::AttributeVisitor&) override { return true; } }; diff --git a/ngraph/core/include/ngraph/op/abs.hpp b/ngraph/core/include/ngraph/op/abs.hpp index 3e9e864ca8eb0d..d41ee5ce8af1d1 100644 --- a/ngraph/core/include/ngraph/op/abs.hpp +++ b/ngraph/core/include/ngraph/op/abs.hpp @@ -23,11 +23,7 @@ namespace ngraph const NodeTypeInfo& get_type_info() const override { return type_info; } /// \brief Constructs an absolute value operation. Abs() = default; - bool visit_attributes(AttributeVisitor& visitor) override - { - (void)visitor; - return true; - } + bool visit_attributes(AttributeVisitor&) override { return true; } /// \brief Constructs an absolute value operation. /// /// \param arg Output that produces the input tensor.
diff --git a/ngraph/core/include/ngraph/op/acos.hpp b/ngraph/core/include/ngraph/op/acos.hpp index 65dbd7d210c89e..2840c8531290c0 100644 --- a/ngraph/core/include/ngraph/op/acos.hpp +++ b/ngraph/core/include/ngraph/op/acos.hpp @@ -31,11 +31,7 @@ namespace ngraph /// Output `[d1, ...]` /// Acos(const Output& arg); - bool visit_attributes(AttributeVisitor& visitor) override - { - (void)visitor; - return true; - } + bool visit_attributes(AttributeVisitor&) override { return true; } std::shared_ptr clone_with_new_inputs(const OutputVector& new_args) const override; bool evaluate(const HostTensorVector& outputs, diff --git a/ngraph/core/include/ngraph/op/acosh.hpp b/ngraph/core/include/ngraph/op/acosh.hpp index b9467266647868..5c7e57b8b30bcf 100644 --- a/ngraph/core/include/ngraph/op/acosh.hpp +++ b/ngraph/core/include/ngraph/op/acosh.hpp @@ -34,11 +34,7 @@ namespace ngraph virtual std::shared_ptr clone_with_new_inputs(const OutputVector& new_args) const override; - bool visit_attributes(AttributeVisitor& visitor) override - { - (void)visitor; - return true; - } + bool visit_attributes(AttributeVisitor&) override { return true; } bool evaluate(const HostTensorVector& outputs, const HostTensorVector& inputs) const override; bool has_evaluate() const override; diff --git a/ngraph/core/include/ngraph/op/asin.hpp b/ngraph/core/include/ngraph/op/asin.hpp index 8a00269adf322c..6768632d2207d5 100644 --- a/ngraph/core/include/ngraph/op/asin.hpp +++ b/ngraph/core/include/ngraph/op/asin.hpp @@ -34,11 +34,7 @@ namespace ngraph virtual std::shared_ptr clone_with_new_inputs(const OutputVector& new_args) const override; - bool visit_attributes(AttributeVisitor& visitor) override - { - (void)visitor; - return true; - } + bool visit_attributes(AttributeVisitor&) override { return true; } bool evaluate(const HostTensorVector& outputs, const HostTensorVector& inputs) const override; bool has_evaluate() const override; diff --git a/ngraph/core/include/ngraph/op/asinh.hpp b/ngraph/core/include/ngraph/op/asinh.hpp index 7eeeb7044985fc..dd075acce1d57f 100644 --- a/ngraph/core/include/ngraph/op/asinh.hpp +++ b/ngraph/core/include/ngraph/op/asinh.hpp @@ -34,11 +34,7 @@ namespace ngraph virtual std::shared_ptr clone_with_new_inputs(const OutputVector& new_args) const override; - bool visit_attributes(AttributeVisitor& visitor) override - { - (void)visitor; - return true; - } + bool visit_attributes(AttributeVisitor&) override { return true; } bool evaluate(const HostTensorVector& outputs, const HostTensorVector& inputs) const override; bool has_evaluate() const override; diff --git a/ngraph/core/include/ngraph/op/atan.hpp b/ngraph/core/include/ngraph/op/atan.hpp index 66af342cfaeef3..1693ca40c45e99 100644 --- a/ngraph/core/include/ngraph/op/atan.hpp +++ b/ngraph/core/include/ngraph/op/atan.hpp @@ -34,11 +34,7 @@ namespace ngraph virtual std::shared_ptr clone_with_new_inputs(const OutputVector& new_args) const override; - bool visit_attributes(AttributeVisitor& visitor) override - { - (void)visitor; - return true; - } + bool visit_attributes(AttributeVisitor&) override { return true; } bool evaluate(const HostTensorVector& outputs, const HostTensorVector& inputs) const override; bool has_evaluate() const override; diff --git a/ngraph/core/include/ngraph/op/atanh.hpp b/ngraph/core/include/ngraph/op/atanh.hpp index 1c084d0dd0dd52..ec99b45d1074e7 100644 --- a/ngraph/core/include/ngraph/op/atanh.hpp +++ b/ngraph/core/include/ngraph/op/atanh.hpp @@ -34,11 +34,7 @@ namespace ngraph virtual std::shared_ptr clone_with_new_inputs(const OutputVector& new_args) const override; - bool visit_attributes(AttributeVisitor& visitor) override - { - (void)visitor; - return true; - } + bool visit_attributes(AttributeVisitor&) override { return true; } bool evaluate(const HostTensorVector& outputs, const HostTensorVector& inputs) const override; bool has_evaluate() const override; diff --git a/ngraph/core/include/ngraph/op/ceiling.hpp b/ngraph/core/include/ngraph/op/ceiling.hpp index 3316fd485b52fe..23e7f70b29f795 100644 --- a/ngraph/core/include/ngraph/op/ceiling.hpp +++ b/ngraph/core/include/ngraph/op/ceiling.hpp @@ -24,11 +24,7 @@ namespace ngraph /// \param arg Node that produces the input tensor. Ceiling(const Output& arg); - bool visit_attributes(AttributeVisitor& visitor) override - { - (void)visitor; - return true; - } + bool visit_attributes(AttributeVisitor&) override { return true; } virtual std::shared_ptr clone_with_new_inputs(const OutputVector& new_args) const override; bool evaluate(const HostTensorVector& outputs, diff --git a/ngraph/core/include/ngraph/op/embedding_segments_sum.hpp b/ngraph/core/include/ngraph/op/embedding_segments_sum.hpp index 2fdc60fc26c77b..9d74cc47e35bef 100644 --- a/ngraph/core/include/ngraph/op/embedding_segments_sum.hpp +++ b/ngraph/core/include/ngraph/op/embedding_segments_sum.hpp @@ -66,11 +66,7 @@ namespace ngraph virtual std::shared_ptr clone_with_new_inputs(const OutputVector& new_args) const override; - bool visit_attributes(AttributeVisitor& visitor) override - { - (void)visitor; - return true; - } + bool visit_attributes(AttributeVisitor&) override { return true; } private: static constexpr int EMB_TABLE = 0;