From 8170cec44179f784ead3f2ed8d83597239fdafc2 Mon Sep 17 00:00:00 2001 From: mbencer Date: Wed, 29 Jul 2020 09:56:30 +0200 Subject: [PATCH] fix after code review --- ngraph/src/ngraph/op/binary_convolution.cpp | 9 +++++---- ngraph/src/ngraph/op/convolution.cpp | 9 +++++---- ngraph/src/ngraph/op/deformable_convolution.cpp | 9 +++++---- 3 files changed, 15 insertions(+), 12 deletions(-) diff --git a/ngraph/src/ngraph/op/binary_convolution.cpp b/ngraph/src/ngraph/op/binary_convolution.cpp index df8973e37be49f..40fded3b786041 100644 --- a/ngraph/src/ngraph/op/binary_convolution.cpp +++ b/ngraph/src/ngraph/op/binary_convolution.cpp @@ -87,10 +87,11 @@ void op::v1::BinaryConvolution::validate_and_infer_types() { result_shape[0] = data_batch_shape[0]; // batch size } - } - if (filters_shape.rank().is_static() && filters_shape.rank().get_length() > 1) - { - result_shape[1] = filters_shape[0]; // filter channel size + + if (filters_shape.rank().is_static() && filters_shape.rank().get_length() > 1) + { + result_shape[1] = filters_shape[0]; // filter channel size + } } if (m_strides.size() == 0) diff --git a/ngraph/src/ngraph/op/convolution.cpp b/ngraph/src/ngraph/op/convolution.cpp index 4cf905255b26d5..bff743947e8a4b 100644 --- a/ngraph/src/ngraph/op/convolution.cpp +++ b/ngraph/src/ngraph/op/convolution.cpp @@ -72,10 +72,11 @@ void op::v1::Convolution::validate_and_infer_types() { result_shape[0] = data_batch_shape[0]; // batch size } - } - if (filters_shape.rank().is_static() && filters_shape.rank().get_length() > 1) - { - result_shape[1] = filters_shape[0]; // filter channel size + + if (filters_shape.rank().is_static() && filters_shape.rank().get_length() > 1) + { + result_shape[1] = filters_shape[0]; // filter channel size + } } element::Type result_et; diff --git a/ngraph/src/ngraph/op/deformable_convolution.cpp b/ngraph/src/ngraph/op/deformable_convolution.cpp index 82c30f2d26c84d..781c7f778f8cfb 100644 --- a/ngraph/src/ngraph/op/deformable_convolution.cpp +++ b/ngraph/src/ngraph/op/deformable_convolution.cpp @@ -132,10 +132,11 @@ void op::v1::DeformableConvolution::validate_and_infer_types() { result_shape[0] = data_batch_shape[0]; // batch size } - } - if (filters_shape.rank().is_static() && filters_shape.rank().get_length() > 1) - { - result_shape[1] = filters_shape[0]; // filter channel size + + if (filters_shape.rank().is_static() && filters_shape.rank().get_length() > 1) + { + result_shape[1] = filters_shape[0]; // filter channel size + } } if (m_strides.size() == 0)