Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
bukejiyu committed Jan 17, 2025
1 parent 9ac73ff commit 068d160
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 9 deletions.
4 changes: 0 additions & 4 deletions src/frontends/paddle/src/op/fill_constant.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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");
Expand Down
1 change: 0 additions & 1 deletion src/frontends/paddle/src/op/set_value.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
1 change: 0 additions & 1 deletion src/frontends/paddle/src/op/tile.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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<int64_t>(x.get_partial_shape().rank().get_length());
Output<Node> repeats;
if (node.has_input("RepeatTimes")) {
repeats = node.get_input("RepeatTimes");
Expand Down
6 changes: 3 additions & 3 deletions src/frontends/paddle/src/op_utils.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,10 @@ namespace frontend {
namespace paddle {
Output<Node> 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<op::default_opset::Unsqueeze>(
node[i],
tensor_list[i],
op::default_opset::Constant::create(element::i64, {1}, {0}));
}
}
Expand Down

0 comments on commit 068d160

Please sign in to comment.