diff --git a/src/frontends/paddle/src/op/fill_constant.cpp b/src/frontends/paddle/src/op/fill_constant.cpp index 18b23cf39fb542..5df8947d24f62c 100644 --- a/src/frontends/paddle/src/op/fill_constant.cpp +++ b/src/frontends/paddle/src/op/fill_constant.cpp @@ -38,10 +38,6 @@ NamedOutputs fill_constant(const NodeContext& node) { PADDLE_OP_CHECK(node, false, "fill_constant only supports i32, f32, i64"); } - if (shape.empty()) { - shape.emplace_back(1); - } - PADDLE_OP_CHECK(node, node.has_attribute("shape") || node.has_input("ShapeTensor") || node.has_input("ShapeTensorList"), "fill_constant shape not set"); diff --git a/src/frontends/paddle/src/op/set_value.cpp b/src/frontends/paddle/src/op/set_value.cpp index 85db9c0c74e4c3..c709ae2bea6695 100644 --- a/src/frontends/paddle/src/op/set_value.cpp +++ b/src/frontends/paddle/src/op/set_value.cpp @@ -8,7 +8,6 @@ #include "op_utils.hpp" #include "openvino/frontend/paddle/node_context.hpp" #include "openvino/op/util/attr_types.hpp" -#include "openvino/opsets/opset1.hpp" namespace ov { namespace frontend { diff --git a/src/frontends/paddle/src/op/tile.cpp b/src/frontends/paddle/src/op/tile.cpp index 426dfd747210ac..e611ec8351779a 100644 --- a/src/frontends/paddle/src/op/tile.cpp +++ b/src/frontends/paddle/src/op/tile.cpp @@ -13,7 +13,6 @@ namespace op { NamedOutputs tile(const NodeContext& node) { auto x = node.get_input("X"); x = get_tensor_safe(x); - auto x_dims = static_cast(x.get_partial_shape().rank().get_length()); Output repeats; if (node.has_input("RepeatTimes")) { repeats = node.get_input("RepeatTimes"); diff --git a/src/frontends/paddle/src/op_utils.cpp b/src/frontends/paddle/src/op_utils.cpp index aba97bc21f3c3e..6bb8084a076450 100644 --- a/src/frontends/paddle/src/op_utils.cpp +++ b/src/frontends/paddle/src/op_utils.cpp @@ -13,10 +13,10 @@ namespace frontend { namespace paddle { Output get_tensor_list(const OutputVector& node) { auto tensor_list = node; - for (size_t i = 0; i < node.size(); i++) { - if (node[i].get_shape().size() == 0) { + for (size_t i = 0; i < tensor_list.size(); i++) { + if (tensor_list[i].get_partial_shape().rank().get_length() == 0) { tensor_list[i] = std::make_shared( - node[i], + tensor_list[i], op::default_opset::Constant::create(element::i64, {1}, {0})); } }