Skip to content

Commit

Permalink
Fixed Windows warning
Browse files Browse the repository at this point in the history
  • Loading branch information
ilyachur committed Jun 9, 2021
1 parent c01d3a0 commit 156a4aa
Show file tree
Hide file tree
Showing 23 changed files with 59 additions and 20 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,7 @@ class CustomReluOp : public ngraph::op::Op {
}

bool visit_attributes(ngraph::AttributeVisitor& visitor) override {
(void)visitor;
return true;
}
};
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ class FakeAbs : public ngraph::op::Op {
return std::make_shared<FakeAbs>(new_args.at(0));
}
bool visit_attributes(ngraph::AttributeVisitor& visitor) override {
(void) visitor;
return true;
}
};
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,7 @@ class CustomAbs : public ngraph::op::Op {
return std::make_shared<CustomAbs>(new_args.at(0));
}
bool visit_attributes(ngraph::AttributeVisitor& visitor) override {
(void) visitor;
return true;
}
};
Expand Down
6 changes: 5 additions & 1 deletion ngraph/core/include/ngraph/op/abs.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,11 @@ 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 { return true; }
bool visit_attributes(AttributeVisitor& visitor) override
{
(void)visitor;
return true;
}
/// \brief Constructs an absolute value operation.
///
/// \param arg Output that produces the input tensor.<br>
Expand Down
6 changes: 5 additions & 1 deletion ngraph/core/include/ngraph/op/acos.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,11 @@ namespace ngraph
/// Output `[d1, ...]`
///
Acos(const Output<Node>& arg);
bool visit_attributes(AttributeVisitor& visitor) override { return true; }
bool visit_attributes(AttributeVisitor& visitor) override
{
(void)visitor;
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: 5 additions & 1 deletion ngraph/core/include/ngraph/op/acosh.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,11 @@ namespace ngraph

virtual std::shared_ptr<Node>
clone_with_new_inputs(const OutputVector& new_args) const override;
bool visit_attributes(AttributeVisitor& visitor) override { return true; }
bool visit_attributes(AttributeVisitor& visitor) override
{
(void)visitor;
return true;
}
bool evaluate(const HostTensorVector& outputs,
const HostTensorVector& inputs) const override;
bool has_evaluate() const override;
Expand Down
6 changes: 5 additions & 1 deletion ngraph/core/include/ngraph/op/asin.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,11 @@ namespace ngraph

virtual std::shared_ptr<Node>
clone_with_new_inputs(const OutputVector& new_args) const override;
bool visit_attributes(AttributeVisitor& visitor) override { return true; }
bool visit_attributes(AttributeVisitor& visitor) override
{
(void)visitor;
return true;
}
bool evaluate(const HostTensorVector& outputs,
const HostTensorVector& inputs) const override;
bool has_evaluate() const override;
Expand Down
6 changes: 5 additions & 1 deletion ngraph/core/include/ngraph/op/asinh.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,11 @@ namespace ngraph

virtual std::shared_ptr<Node>
clone_with_new_inputs(const OutputVector& new_args) const override;
bool visit_attributes(AttributeVisitor& visitor) override { return true; }
bool visit_attributes(AttributeVisitor& visitor) override
{
(void)visitor;
return true;
}
bool evaluate(const HostTensorVector& outputs,
const HostTensorVector& inputs) const override;
bool has_evaluate() const override;
Expand Down
6 changes: 5 additions & 1 deletion ngraph/core/include/ngraph/op/atan.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,11 @@ namespace ngraph

virtual std::shared_ptr<Node>
clone_with_new_inputs(const OutputVector& new_args) const override;
bool visit_attributes(AttributeVisitor& visitor) override { return true; }
bool visit_attributes(AttributeVisitor& visitor) override
{
(void)visitor;
return true;
}
bool evaluate(const HostTensorVector& outputs,
const HostTensorVector& inputs) const override;
bool has_evaluate() const override;
Expand Down
6 changes: 5 additions & 1 deletion ngraph/core/include/ngraph/op/atanh.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,11 @@ namespace ngraph

virtual std::shared_ptr<Node>
clone_with_new_inputs(const OutputVector& new_args) const override;
bool visit_attributes(AttributeVisitor& visitor) override { return true; }
bool visit_attributes(AttributeVisitor& visitor) override
{
(void)visitor;
return true;
}
bool evaluate(const HostTensorVector& outputs,
const HostTensorVector& inputs) const override;
bool has_evaluate() const override;
Expand Down
2 changes: 1 addition & 1 deletion ngraph/core/include/ngraph/op/bucketize.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ namespace ngraph
const bool with_right_bound = true);

virtual void validate_and_infer_types() override;
virtual bool visit_attributes(AttributeVisitor& visitor) override;
bool visit_attributes(AttributeVisitor& visitor) override;

virtual std::shared_ptr<Node>
clone_with_new_inputs(const OutputVector& inputs) const override;
Expand Down
6 changes: 5 additions & 1 deletion ngraph/core/include/ngraph/op/ceiling.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,11 @@ namespace ngraph
/// \param arg Node that produces the input tensor.
Ceiling(const Output<Node>& arg);

bool visit_attributes(AttributeVisitor& visitor) override { return true; }
bool visit_attributes(AttributeVisitor& visitor) override
{
(void)visitor;
return true;
}
virtual std::shared_ptr<Node>
clone_with_new_inputs(const OutputVector& new_args) const override;
bool evaluate(const HostTensorVector& outputs,
Expand Down
2 changes: 1 addition & 1 deletion ngraph/core/include/ngraph/op/detection_output.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ namespace ngraph
clone_with_new_inputs(const OutputVector& new_args) const override;

const DetectionOutputAttrs& get_attrs() const { return m_attrs; }
virtual bool visit_attributes(AttributeVisitor& visitor) override;
bool visit_attributes(AttributeVisitor& visitor) override;

private:
DetectionOutputAttrs m_attrs;
Expand Down
6 changes: 5 additions & 1 deletion ngraph/core/include/ngraph/op/embedding_segments_sum.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,11 @@ namespace ngraph
virtual std::shared_ptr<Node>
clone_with_new_inputs(const OutputVector& new_args) const override;

virtual bool visit_attributes(AttributeVisitor& visitor) override { return true; }
bool visit_attributes(AttributeVisitor& visitor) override
{
(void)visitor;
return true;
}

private:
static constexpr int EMB_TABLE = 0;
Expand Down
2 changes: 1 addition & 1 deletion ngraph/core/include/ngraph/op/mvn.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ namespace ngraph

virtual void validate_and_infer_types() override;

virtual bool visit_attributes(AttributeVisitor& visitor) override;
bool visit_attributes(AttributeVisitor& visitor) override;

virtual std::shared_ptr<Node>
clone_with_new_inputs(const OutputVector& new_args) const override;
Expand Down
2 changes: 1 addition & 1 deletion ngraph/core/include/ngraph/op/prior_box.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ namespace ngraph
static std::vector<float>
normalized_aspect_ratio(const std::vector<float>& aspect_ratio, bool flip);
const PriorBoxAttrs& get_attrs() const { return m_attrs; }
virtual bool visit_attributes(AttributeVisitor& visitor) override;
bool visit_attributes(AttributeVisitor& visitor) override;
bool evaluate(const HostTensorVector& outputs,
const HostTensorVector& inputs) const override;
bool has_evaluate() const override;
Expand Down
2 changes: 1 addition & 1 deletion ngraph/core/include/ngraph/op/prior_box_clustered.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ namespace ngraph
virtual std::shared_ptr<Node>
clone_with_new_inputs(const OutputVector& new_args) const override;
const PriorBoxClusteredAttrs& get_attrs() const { return m_attrs; }
virtual bool visit_attributes(AttributeVisitor& visitor) override;
bool visit_attributes(AttributeVisitor& visitor) override;
bool evaluate(const HostTensorVector& outputs,
const HostTensorVector& inputs) const override;
bool has_evaluate() const override;
Expand Down
2 changes: 1 addition & 1 deletion ngraph/core/include/ngraph/op/proposal.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ namespace ngraph
virtual std::shared_ptr<Node>
clone_with_new_inputs(const OutputVector& new_args) const override;
const ProposalAttrs& get_attrs() const { return m_attrs; }
virtual bool visit_attributes(AttributeVisitor& visitor) override;
bool visit_attributes(AttributeVisitor& visitor) override;

protected:
ProposalAttrs m_attrs;
Expand Down
2 changes: 1 addition & 1 deletion ngraph/core/include/ngraph/op/reorg_yolo.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ namespace ngraph

void validate_and_infer_types() override;

virtual bool visit_attributes(AttributeVisitor& visitor) override;
bool visit_attributes(AttributeVisitor& visitor) override;

virtual std::shared_ptr<Node>
clone_with_new_inputs(const OutputVector& new_args) const override;
Expand Down
2 changes: 1 addition & 1 deletion ngraph/core/include/ngraph/op/roi_align.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ namespace ngraph
const PoolingMode mode);

virtual void validate_and_infer_types() override;
virtual bool visit_attributes(AttributeVisitor& visitor) override;
bool visit_attributes(AttributeVisitor& visitor) override;
virtual std::shared_ptr<Node>
clone_with_new_inputs(const OutputVector& new_args) const override;

Expand Down
2 changes: 1 addition & 1 deletion ngraph/core/include/ngraph/op/scatter_elements_update.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ namespace ngraph
const Output<Node>& axis);

virtual void validate_and_infer_types() override;
virtual bool visit_attributes(AttributeVisitor& visitor) override;
bool visit_attributes(AttributeVisitor& visitor) override;

virtual std::shared_ptr<Node>
clone_with_new_inputs(const OutputVector& inputs) const override;
Expand Down
2 changes: 1 addition & 1 deletion ngraph/core/include/ngraph/op/util/scatter_base.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ namespace ngraph
static constexpr NodeTypeInfo type_info{"ScatterBase", 3};
const NodeTypeInfo& get_type_info() const override { return type_info; }
virtual void validate_and_infer_types() override;
virtual bool visit_attributes(AttributeVisitor& visitor) override;
bool visit_attributes(AttributeVisitor& visitor) override;

protected:
ScatterBase() = default;
Expand Down
2 changes: 1 addition & 1 deletion ngraph/core/include/ngraph/op/util/scatter_nd_base.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ namespace ngraph
static constexpr int INDICES = 1;
static constexpr int UPDATES = 2;
virtual void validate_and_infer_types() override;
virtual bool visit_attributes(AttributeVisitor& visitor) override;
bool visit_attributes(AttributeVisitor& visitor) override;

protected:
ScatterNDBase() = default;
Expand Down

0 comments on commit 156a4aa

Please sign in to comment.