From 237fd518ff0ae8e1ca2c51f477712582eba56c87 Mon Sep 17 00:00:00 2001 From: Golubev Date: Mon, 20 Jul 2020 09:15:16 +0300 Subject: [PATCH] [LPT] code style fix #2 --- .../lp_transformations/clamp_transformation.cpp | 2 +- .../src/low_precision_transformations/clamp_function.cpp | 3 +-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/inference-engine/tests/functional/inference_engine/lp_transformations/clamp_transformation.cpp b/inference-engine/tests/functional/inference_engine/lp_transformations/clamp_transformation.cpp index 3cd0a321feea53..8d4ea5752b609c 100644 --- a/inference-engine/tests/functional/inference_engine/lp_transformations/clamp_transformation.cpp +++ b/inference-engine/tests/functional/inference_engine/lp_transformations/clamp_transformation.cpp @@ -52,7 +52,7 @@ class ClampTransformation : public LayerTransformation, public testing::WithPara SimpleLowPrecisionTransformer transform; transform.add(testValues.params); transform.transform(actualFunction); - + referenceFunction = ngraph::builder::subgraph::ClampFunction::getReference(precision, shape, { diff --git a/inference-engine/tests/ngraph_functions/src/low_precision_transformations/clamp_function.cpp b/inference-engine/tests/ngraph_functions/src/low_precision_transformations/clamp_function.cpp index d8bdc488293a1d..17bfe53f7a178f 100644 --- a/inference-engine/tests/ngraph_functions/src/low_precision_transformations/clamp_function.cpp +++ b/inference-engine/tests/ngraph_functions/src/low_precision_transformations/clamp_function.cpp @@ -51,9 +51,8 @@ namespace subgraph { const std::shared_ptr clamp = std::make_shared>(parent, 0.0, 10.0); ngraph::pass::low_precision::NetworkHelper::setOutDataPrecision(clamp, originalFunctionPrecision); - parent = clamp; - + if (!values.subtractValues.empty()) { const std::shared_ptr subtract = std::make_shared>( parent,