From 29304c91fe5bf5d93c08daf264a1799a30b09275 Mon Sep 17 00:00:00 2001 From: Ilya Churaev Date: Fri, 18 Dec 2020 19:30:57 +0300 Subject: [PATCH] Fixed comments --- ngraph/core/src/op/multiply.cpp | 2 +- ngraph/core/src/op/reduce_l1.cpp | 10 +++++----- ngraph/core/src/op/reduce_sum.cpp | 12 ++++++------ ngraph/core/src/op/util/broadcast_base.cpp | 5 +++-- ngraph/core/src/op/xor.cpp | 2 +- 5 files changed, 16 insertions(+), 15 deletions(-) diff --git a/ngraph/core/src/op/multiply.cpp b/ngraph/core/src/op/multiply.cpp index 6f0db5c54b6bef..05dbef8b16405b 100644 --- a/ngraph/core/src/op/multiply.cpp +++ b/ngraph/core/src/op/multiply.cpp @@ -85,7 +85,7 @@ bool op::v0::Multiply::evaluate(const HostTensorVector& outputs, const HostTensorVector& inputs) const { NGRAPH_OP_SCOPE( - op_v0_Multiply_evaluate, + Multiply_evaluate, return multiplyop::evaluate_multiply(inputs[0], inputs[1], outputs[0], get_autob())); return false; } diff --git a/ngraph/core/src/op/reduce_l1.cpp b/ngraph/core/src/op/reduce_l1.cpp index 2b083744813066..acc381f4690ff2 100644 --- a/ngraph/core/src/op/reduce_l1.cpp +++ b/ngraph/core/src/op/reduce_l1.cpp @@ -67,11 +67,11 @@ namespace reduce_l1 bool rc = true; switch (arg->get_element_type()) { - NGRAPH_TYPE_CASE(evaluate_sum, i32, arg, out, axes, keep_dims); - NGRAPH_TYPE_CASE(evaluate_sum, i64, arg, out, axes, keep_dims); - NGRAPH_TYPE_CASE(evaluate_sum, bf16, arg, out, axes, keep_dims); - NGRAPH_TYPE_CASE(evaluate_sum, f16, arg, out, axes, keep_dims); - NGRAPH_TYPE_CASE(evaluate_sum, f32, arg, out, axes, keep_dims); + NGRAPH_TYPE_CASE(evaluate_reducel1_sum, i32, arg, out, axes, keep_dims); + NGRAPH_TYPE_CASE(evaluate_reducel1_sum, i64, arg, out, axes, keep_dims); + NGRAPH_TYPE_CASE(evaluate_reducel1_sum, bf16, arg, out, axes, keep_dims); + NGRAPH_TYPE_CASE(evaluate_reducel1_sum, f16, arg, out, axes, keep_dims); + NGRAPH_TYPE_CASE(evaluate_reducel1_sum, f32, arg, out, axes, keep_dims); default: rc = false; break; } return rc; diff --git a/ngraph/core/src/op/reduce_sum.cpp b/ngraph/core/src/op/reduce_sum.cpp index 0dcdf6f3f989cc..782f078ac19787 100644 --- a/ngraph/core/src/op/reduce_sum.cpp +++ b/ngraph/core/src/op/reduce_sum.cpp @@ -68,12 +68,12 @@ namespace reduce_sum bool rc = true; switch (arg->get_element_type()) { - NGRAPH_TYPE_CASE(evaluate_sum, i32, arg, out, axes, keep_dims); - NGRAPH_TYPE_CASE(evaluate_sum, i64, arg, out, axes, keep_dims); - NGRAPH_TYPE_CASE(evaluate_sum, u32, arg, out, axes, keep_dims); - NGRAPH_TYPE_CASE(evaluate_sum, u64, arg, out, axes, keep_dims); - NGRAPH_TYPE_CASE(evaluate_sum, f16, arg, out, axes, keep_dims); - NGRAPH_TYPE_CASE(evaluate_sum, f32, arg, out, axes, keep_dims); + NGRAPH_TYPE_CASE(evaluate_reduce_sum, i32, arg, out, axes, keep_dims); + NGRAPH_TYPE_CASE(evaluate_reduce_sum, i64, arg, out, axes, keep_dims); + NGRAPH_TYPE_CASE(evaluate_reduce_sum, u32, arg, out, axes, keep_dims); + NGRAPH_TYPE_CASE(evaluate_reduce_sum, u64, arg, out, axes, keep_dims); + NGRAPH_TYPE_CASE(evaluate_reduce_sum, f16, arg, out, axes, keep_dims); + NGRAPH_TYPE_CASE(evaluate_reduce_sum, f32, arg, out, axes, keep_dims); default: rc = false; break; } return rc; diff --git a/ngraph/core/src/op/util/broadcast_base.cpp b/ngraph/core/src/op/util/broadcast_base.cpp index 51683acaa885db..6788dda9bbd9ea 100644 --- a/ngraph/core/src/op/util/broadcast_base.cpp +++ b/ngraph/core/src/op/util/broadcast_base.cpp @@ -361,7 +361,7 @@ bool op::util::BroadcastBase::evaluate(const HostTensorPtr& arg0, const HostTensorPtr& out, const AxisSet& broadcast_axes) const { - NGRAPH_OP_SCOPE(op_util_BroadcastBase_evaluate, + NGRAPH_OP_SCOPE(util_BroadcastBase_evaluate_axes, runtime::reference::broadcast(arg0->get_data_ptr(), out->get_data_ptr(), arg0->get_shape(), @@ -501,7 +501,8 @@ bool op::util::BroadcastBase::evaluate(const HostTensorVector& outputs, const HostTensorVector& inputs) const { NGRAPH_OP_SCOPE( - op_util_BroadcastBase_evaluate, Shape target_shape = get_target_shape(inputs[1]); + util_BroadcastBase_evaluate, + Shape target_shape = get_target_shape(inputs[1]); PartialShape result_shape; std::pair pair_broadcast_axes; diff --git a/ngraph/core/src/op/xor.cpp b/ngraph/core/src/op/xor.cpp index 3af367287d1586..bbf660d6735834 100644 --- a/ngraph/core/src/op/xor.cpp +++ b/ngraph/core/src/op/xor.cpp @@ -86,7 +86,7 @@ namespace logxor bool op::v1::LogicalXor::evaluate(const HostTensorVector& outputs, const HostTensorVector& inputs) const { - NGRAPH_OP_SCOPE(op_v1_LogicalXor_evaluate, + NGRAPH_OP_SCOPE(v1_LogicalXor_evaluate, return logxor::evaluate_logxor(inputs[0], inputs[1], outputs[0], get_autob())); return false; }