Skip to content

Commit 4f171cd

Browse files
committed
fix clang-format
Signed-off-by: Andrew Park <andrew.park@intel.com>
1 parent 9d5f1c7 commit 4f171cd

File tree

3 files changed

+15
-9
lines changed

3 files changed

+15
-9
lines changed

src/common/transformations/src/ov_ops/rms.cpp

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,11 @@ namespace ov {
88
namespace op {
99
namespace internal {
1010

11-
RMS::RMS(const Output<Node>& data, const Output<Node>& gamma, double epsilson, const ov::element::Type output_type, bool elementwise_affine)
11+
RMS::RMS(const Output<Node>& data,
12+
const Output<Node>& gamma,
13+
double epsilson,
14+
const ov::element::Type output_type,
15+
bool elementwise_affine)
1216
: Op({data, gamma}),
1317
m_epsilon(epsilson),
1418
m_output_type(output_type),

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: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -325,7 +325,7 @@ TEST_F(TransformationTestsF, RMSNormFusionTest10) {
325325
{
326326
auto input = std::make_shared<ov::opset10::Parameter>(ov::element::f32, ov::Shape{1, 2, 6});
327327
auto scale = std::make_shared<ov::opset10::Parameter>(ov::element::f32, ov::Shape{1, 2, 6});
328-
328+
329329
auto power_const = ov::opset10::Constant::create(ov::element::f32, {}, {2.f});
330330
auto power = std::make_shared<ov::opset10::Power>(input, power_const);
331331
auto mean_axes = ov::opset10::Constant::create(ov::element::i64, ov::Shape{1}, {-1});
@@ -344,8 +344,9 @@ TEST_F(TransformationTestsF, RMSNormFusionTest10) {
344344
{
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});
347-
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});
347+
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

@@ -358,7 +359,7 @@ TEST_F(TransformationTestsF, RMSNormFusionTest11) {
358359
{
359360
auto input = std::make_shared<ov::opset10::Parameter>(ov::element::f32, ov::PartialShape{-1, -1, 6});
360361
auto scale = std::make_shared<ov::opset10::Parameter>(ov::element::f32, ov::PartialShape{-1, -1, 6});
361-
362+
362363
auto power_const = ov::opset10::Constant::create(ov::element::f32, {}, {2.f});
363364
auto power = std::make_shared<ov::opset10::Power>(input, power_const);
364365
auto mean_axes = ov::opset10::Constant::create(ov::element::i64, ov::Shape{1}, {-1});
@@ -377,8 +378,9 @@ TEST_F(TransformationTestsF, RMSNormFusionTest11) {
377378
{
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});
380-
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});
381+
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)