Skip to content

Commit

Permalink
Fixed comments
Browse files Browse the repository at this point in the history
  • Loading branch information
ilyachur committed Jul 26, 2021
1 parent 29bddf7 commit f3d2d43
Show file tree
Hide file tree
Showing 17 changed files with 16 additions and 56 deletions.
2 changes: 1 addition & 1 deletion inference-engine/include/cpp/ie_cnn_network.h
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
#include "ie_common.h"
#include "ie_data.h"
#include "ie_extension.h"
#include <ngraph/ngraph.hpp>
#include <ngraph/function.hpp>

namespace InferenceEngine {

Expand Down
2 changes: 1 addition & 1 deletion inference-engine/include/ie_icnn_network.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
#include "ie_data.h"
#include "ie_input_info.hpp"

#include <ngraph/ngraph.hpp>
#include <ngraph/function.hpp>

namespace InferenceEngine {

Expand Down
2 changes: 1 addition & 1 deletion inference-engine/include/ie_iextension.h
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
#include "ie_layouts.h"
#include "ie_blob.h"
#include "ie_version.hpp"
#include <ngraph/ngraph.hpp>
#include <ngraph/opsets/opset.hpp>

/**
* @def INFERENCE_EXTENSION_API(TYPE)
Expand Down
1 change: 0 additions & 1 deletion inference-engine/include/ie_parameter.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@
#include <vector>

#include "ie_blob.h"
#include <ngraph/ngraph.hpp>

namespace InferenceEngine {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -109,8 +109,7 @@ class CustomReluOp : public ngraph::op::Op {
return std::make_shared<CustomReluOp>(new_args.at(0));
}

bool visit_attributes(ngraph::AttributeVisitor& visitor) override {
(void)visitor;
bool visit_attributes(ngraph::AttributeVisitor&) override {
return true;
}
};
Expand Down
2 changes: 1 addition & 1 deletion inference-engine/src/inference_engine/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,7 @@ class FakeAbs : public ngraph::op::Op {
std::shared_ptr<ngraph::Node> clone_with_new_inputs(const ngraph::OutputVector& new_args) const override {
return std::make_shared<FakeAbs>(new_args.at(0));
}
bool visit_attributes(ngraph::AttributeVisitor& visitor) override {
(void) visitor;
bool visit_attributes(ngraph::AttributeVisitor&) override {
return true;
}
};
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -89,8 +89,7 @@ class CustomAbs : public ngraph::op::Op {
std::shared_ptr<ngraph::Node> clone_with_new_inputs(const ngraph::OutputVector& new_args) const override {
return std::make_shared<CustomAbs>(new_args.at(0));
}
bool visit_attributes(ngraph::AttributeVisitor& visitor) override {
(void) visitor;
bool visit_attributes(ngraph::AttributeVisitor&) override {
return true;
}
};
Expand Down
6 changes: 1 addition & 5 deletions ngraph/core/include/ngraph/op/abs.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -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.<br>
Expand Down
6 changes: 1 addition & 5 deletions ngraph/core/include/ngraph/op/acos.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -31,11 +31,7 @@ namespace ngraph
/// Output `[d1, ...]`
///
Acos(const Output<Node>& arg);
bool visit_attributes(AttributeVisitor& visitor) override
{
(void)visitor;
return true;
}
bool visit_attributes(AttributeVisitor&) override { return true; }
std::shared_ptr<Node>
clone_with_new_inputs(const OutputVector& new_args) const override;
bool evaluate(const HostTensorVector& outputs,
Expand Down
6 changes: 1 addition & 5 deletions ngraph/core/include/ngraph/op/acosh.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -34,11 +34,7 @@ namespace ngraph

virtual std::shared_ptr<Node>
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;
Expand Down
6 changes: 1 addition & 5 deletions ngraph/core/include/ngraph/op/asin.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -34,11 +34,7 @@ namespace ngraph

virtual std::shared_ptr<Node>
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;
Expand Down
6 changes: 1 addition & 5 deletions ngraph/core/include/ngraph/op/asinh.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -34,11 +34,7 @@ namespace ngraph

virtual std::shared_ptr<Node>
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;
Expand Down
6 changes: 1 addition & 5 deletions ngraph/core/include/ngraph/op/atan.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -34,11 +34,7 @@ namespace ngraph

virtual std::shared_ptr<Node>
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;
Expand Down
6 changes: 1 addition & 5 deletions ngraph/core/include/ngraph/op/atanh.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -34,11 +34,7 @@ namespace ngraph

virtual std::shared_ptr<Node>
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;
Expand Down
6 changes: 1 addition & 5 deletions ngraph/core/include/ngraph/op/ceiling.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -24,11 +24,7 @@ namespace ngraph
/// \param arg Node that produces the input tensor.
Ceiling(const Output<Node>& arg);

bool visit_attributes(AttributeVisitor& visitor) override
{
(void)visitor;
return true;
}
bool visit_attributes(AttributeVisitor&) override { return true; }
virtual std::shared_ptr<Node>
clone_with_new_inputs(const OutputVector& new_args) const override;
bool evaluate(const HostTensorVector& outputs,
Expand Down
6 changes: 1 addition & 5 deletions ngraph/core/include/ngraph/op/embedding_segments_sum.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -66,11 +66,7 @@ namespace ngraph
virtual std::shared_ptr<Node>
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;
Expand Down

0 comments on commit f3d2d43

Please sign in to comment.