From 21a55233e3dad970d7c02c4a297fc17457f09264 Mon Sep 17 00:00:00 2001 From: Georgy Krivoruchko Date: Fri, 21 Jun 2024 16:37:27 +0400 Subject: [PATCH] Fixed codestyle --- src/frontends/onnx/frontend/src/op/multinomial.cpp | 9 ++------- src/frontends/onnx/frontend/src/op/random_uniform.cpp | 8 ++------ .../onnx/frontend/src/op/random_uniform_like.cpp | 7 +------ src/frontends/onnx/frontend/src/utils/common.hpp | 1 - 4 files changed, 5 insertions(+), 20 deletions(-) diff --git a/src/frontends/onnx/frontend/src/op/multinomial.cpp b/src/frontends/onnx/frontend/src/op/multinomial.cpp index 879e0c544fb646..294e19ed742477 100644 --- a/src/frontends/onnx/frontend/src/op/multinomial.cpp +++ b/src/frontends/onnx/frontend/src/op/multinomial.cpp @@ -28,13 +28,8 @@ ov::OutputVector multinomial(const ov::frontend::onnx::Node& node) { const auto target_type = common::get_ov_element_type(dtype); const uint64_t global_seed = 0; - auto multinomial_op = std::make_shared(input, - sample_size, - target_type, - true, - true, - seed, - global_seed); + auto multinomial_op = + std::make_shared(input, sample_size, target_type, true, true, seed, global_seed); return {multinomial_op}; } diff --git a/src/frontends/onnx/frontend/src/op/random_uniform.cpp b/src/frontends/onnx/frontend/src/op/random_uniform.cpp index 4090f5125b6925..b078727ceafd07 100644 --- a/src/frontends/onnx/frontend/src/op/random_uniform.cpp +++ b/src/frontends/onnx/frontend/src/op/random_uniform.cpp @@ -31,12 +31,8 @@ ov::OutputVector random_uniform(const ov::frontend::onnx::Node& node) { const auto target_type = common::get_ov_element_type(dtype); const uint64_t global_seed = 0; - return {std::make_shared(target_shape_const, - low_const, - high_const, - target_type, - global_seed, - seed)}; + return { + std::make_shared(target_shape_const, low_const, high_const, target_type, global_seed, seed)}; } } // namespace set_1 diff --git a/src/frontends/onnx/frontend/src/op/random_uniform_like.cpp b/src/frontends/onnx/frontend/src/op/random_uniform_like.cpp index e8c9093bdc85a6..b80e93fce99c1b 100644 --- a/src/frontends/onnx/frontend/src/op/random_uniform_like.cpp +++ b/src/frontends/onnx/frontend/src/op/random_uniform_like.cpp @@ -37,12 +37,7 @@ ov::OutputVector random_uniform_like(const ov::frontend::onnx::Node& node) { const uint64_t global_seed = 0; - return {std::make_shared(target_shape, - low_const, - high_const, - target_type, - global_seed, - seed)}; + return {std::make_shared(target_shape, low_const, high_const, target_type, global_seed, seed)}; } } // namespace set_1 diff --git a/src/frontends/onnx/frontend/src/utils/common.hpp b/src/frontends/onnx/frontend/src/utils/common.hpp index 5d419fb60669f4..bca81cffa98abe 100644 --- a/src/frontends/onnx/frontend/src/utils/common.hpp +++ b/src/frontends/onnx/frontend/src/utils/common.hpp @@ -181,7 +181,6 @@ inline uint32_t convert_float_seed(const float seed) { return *static_cast(seed_ptr); } - } // namespace common } // namespace onnx } // namespace frontend