Skip to content

Commit

Permalink
Fix code style
Browse files Browse the repository at this point in the history
  • Loading branch information
iefode committed Oct 9, 2020
1 parent 16112d0 commit c729985
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 19 deletions.
8 changes: 4 additions & 4 deletions ngraph/core/include/ngraph/op/add.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -29,16 +29,16 @@ namespace ngraph
/// \brief Elementwise addition operation.
///
class NGRAPH_DEPRECATED(
"This operation is deprecated and will be removed soon. Use v1::Add instead of it.")
NGRAPH_API Add : public util::BinaryElementwiseArithmetic
"This operation is deprecated and will be removed soon. Use v1::Add instead of it.")
NGRAPH_API Add : public util::BinaryElementwiseArithmetic
{
NGRAPH_SUPPRESS_DEPRECATED_START
public:
static constexpr NodeTypeInfo type_info{"Add", 0};
const NodeTypeInfo& get_type_info() const override { return type_info; }
/// \brief Constructs an uninitialized addition operation
Add()
: util::BinaryElementwiseArithmetic(AutoBroadcastSpec::NONE)
: util::BinaryElementwiseArithmetic(AutoBroadcastSpec::NONE)
{
}

Expand All @@ -57,7 +57,7 @@ namespace ngraph
const AutoBroadcastSpec& auto_broadcast = AutoBroadcastSpec());

std::shared_ptr<Node>
clone_with_new_inputs(const OutputVector& new_args) const override;
clone_with_new_inputs(const OutputVector& new_args) const override;

bool visit_attributes(AttributeVisitor& visitor) override;
bool evaluate(const HostTensorVector& outputs,
Expand Down
30 changes: 15 additions & 15 deletions ngraph/core/src/op/add.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -47,28 +47,28 @@ bool evaluate_add(const HostTensorPtr& arg0,
switch (arg0->get_element_type())
{
TYPE_CASE(i8)(arg0, arg1, out, broadcast_spec);
break;
break;
TYPE_CASE(i16)(arg0, arg1, out, broadcast_spec);
break;
break;
TYPE_CASE(i32)(arg0, arg1, out, broadcast_spec);
break;
break;
TYPE_CASE(i64)(arg0, arg1, out, broadcast_spec);
break;
break;
TYPE_CASE(u8)(arg0, arg1, out, broadcast_spec);
break;
break;
TYPE_CASE(u16)(arg0, arg1, out, broadcast_spec);
break;
break;
TYPE_CASE(u32)(arg0, arg1, out, broadcast_spec);
break;
break;
TYPE_CASE(u64)(arg0, arg1, out, broadcast_spec);
break;
break;
TYPE_CASE(bf16)(arg0, arg1, out, broadcast_spec);
break;
break;
TYPE_CASE(f16)(arg0, arg1, out, broadcast_spec);
break;
break;
TYPE_CASE(f32)(arg0, arg1, out, broadcast_spec);
break;
default: rc = false; break;
break;
default: rc = false; break;
}
return rc;
}
Expand All @@ -81,7 +81,7 @@ constexpr NodeTypeInfo op::v0::Add::type_info;
op::v0::Add::Add(const Output<Node>& arg0,
const Output<Node>& arg1,
const AutoBroadcastSpec& auto_broadcast)
: BinaryElementwiseArithmetic(arg0, arg1, auto_broadcast)
: BinaryElementwiseArithmetic(arg0, arg1, auto_broadcast)
{
constructor_validate_and_infer_types();
}
Expand All @@ -98,8 +98,8 @@ bool op::v0::Add::visit_attributes(AttributeVisitor& visitor)
return true;
}


bool op::v0::Add::evaluate(const HostTensorVector &outputs, const HostTensorVector &inputs) const {
bool op::v0::Add::evaluate(const HostTensorVector& outputs, const HostTensorVector& inputs) const
{
OV_ITT_SCOPED_TASK(itt::domains::nGraphOp, "op::v0::Add::evaluate");
return evaluate_add(inputs[0], inputs[1], outputs[0], get_autob());
}
Expand Down

0 comments on commit c729985

Please sign in to comment.