diff --git a/ngraph/core/reference/include/ngraph/runtime/reference/reduce_l1.hpp b/ngraph/core/reference/include/ngraph/runtime/reference/reduce_l1.hpp index 21bc8c526a3..336dd507f83 100644 --- a/ngraph/core/reference/include/ngraph/runtime/reference/reduce_l1.hpp +++ b/ngraph/core/reference/include/ngraph/runtime/reference/reduce_l1.hpp @@ -51,7 +51,7 @@ namespace ngraph size_t output_index = output_transform.index(output_coord); out[output_index] = - out[output_index] + abs(arg[input_transform.index(input_coord)]); + out[output_index] + std::abs(arg[input_transform.index(input_coord)]); } } }