Skip to content

Commit ffcc2cc

Browse files
committed
fix clang-format
1 parent 9d5f1c7 commit ffcc2cc

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed

src/common/transformations/src/transformations/common_optimizations/rms_fusion.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -154,8 +154,8 @@ RMSFusion::RMSFusion(bool force_tail_convert, bool enable_div_x) {
154154
return false;
155155
}
156156

157-
auto output_type = has_gamma ? m.get_match_root()->get_output_element_type(0)
158-
: mul_or_div_node->get_output_element_type(0);
157+
auto output_type =
158+
has_gamma ? m.get_match_root()->get_output_element_type(0) : mul_or_div_node->get_output_element_type(0);
159159
auto rms = std::make_shared<ov::op::internal::RMS>(x_output, gamma_node, eps_value, output_type, has_gamma);
160160
if (has_gamma) {
161161
rms->set_friendly_name(m.get_match_root()->get_friendly_name());

src/common/transformations/tests/common_optimizations/rms_norm_decomposition_test.cpp

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -345,7 +345,8 @@ TEST_F(TransformationTestsF, RMSNormFusionTest10) {
345345
auto input = std::make_shared<ov::opset10::Parameter>(ov::element::f32, ov::Shape{1, 2, 6});
346346
auto scale = std::make_shared<ov::opset10::Parameter>(ov::element::f32, ov::Shape{1, 2, 6});
347347

348-
auto rms_const = ov::opset10::Constant::create(ov::element::f32, ov::Shape{6}, {1.0f, 1.0f, 1.0f, 1.0f, 1.0f, 1.0f});
348+
auto rms_const =
349+
ov::opset10::Constant::create(ov::element::f32, ov::Shape{6}, {1.0f, 1.0f, 1.0f, 1.0f, 1.0f, 1.0f});
349350
auto rms = std::make_shared<ov::op::internal::RMS>(input, rms_const, 1e-5f, ov::element::f32, false);
350351
auto mul = std::make_shared<ov::opset10::Multiply>(rms, scale);
351352

@@ -378,7 +379,8 @@ TEST_F(TransformationTestsF, RMSNormFusionTest11) {
378379
auto input = std::make_shared<ov::opset10::Parameter>(ov::element::f32, ov::PartialShape{-1, -1, 6});
379380
auto scale = std::make_shared<ov::opset10::Parameter>(ov::element::f32, ov::PartialShape{-1, -1, 6});
380381

381-
auto rms_const = ov::opset10::Constant::create(ov::element::f32, ov::Shape{6}, {1.0f, 1.0f, 1.0f, 1.0f, 1.0f, 1.0f});
382+
auto rms_const =
383+
ov::opset10::Constant::create(ov::element::f32, ov::Shape{6}, {1.0f, 1.0f, 1.0f, 1.0f, 1.0f, 1.0f});
382384
auto rms = std::make_shared<ov::op::internal::RMS>(input, rms_const, 1e-6f, ov::element::f32, false);
383385
auto mul = std::make_shared<ov::opset10::Multiply>(rms, scale);
384386

0 commit comments

Comments
 (0)