Skip to content

Commit

Permalink
Fixed codestyle
Browse files Browse the repository at this point in the history
  • Loading branch information
gkrivor committed Jun 21, 2024
1 parent fd10d89 commit 21a5523
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 20 deletions.
9 changes: 2 additions & 7 deletions src/frontends/onnx/frontend/src/op/multinomial.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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<ov::op::v13::Multinomial>(input,
sample_size,
target_type,
true,
true,
seed,
global_seed);
auto multinomial_op =
std::make_shared<ov::op::v13::Multinomial>(input, sample_size, target_type, true, true, seed, global_seed);

return {multinomial_op};
}
Expand Down
8 changes: 2 additions & 6 deletions src/frontends/onnx/frontend/src/op/random_uniform.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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<v8::RandomUniform>(target_shape_const,
low_const,
high_const,
target_type,
global_seed,
seed)};
return {
std::make_shared<v8::RandomUniform>(target_shape_const, low_const, high_const, target_type, global_seed, seed)};
}

} // namespace set_1
Expand Down
7 changes: 1 addition & 6 deletions src/frontends/onnx/frontend/src/op/random_uniform_like.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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<v8::RandomUniform>(target_shape,
low_const,
high_const,
target_type,
global_seed,
seed)};
return {std::make_shared<v8::RandomUniform>(target_shape, low_const, high_const, target_type, global_seed, seed)};
}

} // namespace set_1
Expand Down
1 change: 0 additions & 1 deletion src/frontends/onnx/frontend/src/utils/common.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,6 @@ inline uint32_t convert_float_seed(const float seed) {
return *static_cast<const uint32_t*>(seed_ptr);
}


} // namespace common
} // namespace onnx
} // namespace frontend
Expand Down

0 comments on commit 21a5523

Please sign in to comment.