Skip to content

Commit

Permalink
[luci/service] fix typo
Browse files Browse the repository at this point in the history
fix typo of annotation and adjust lines withs suggestions.

ONE-DCO-1.0-Signed-off-by: JuYoung Lee [email protected]
  • Loading branch information
icodo98 committed Sep 8, 2024
1 parent c73bb2c commit 553a758
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 4 deletions.
1 change: 0 additions & 1 deletion compiler/luci/service/src/CircleShapeInferenceHelper.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,6 @@ loco::TensorShape pad_shape(const loco::TensorShape &input_shape, const luci::Ci
output_shape.rank(input_shape.rank());

auto const_padding = dynamic_cast<const luci::CircleConst *>(paddings);

if (const_padding == nullptr)
return output_shape;

Expand Down
2 changes: 1 addition & 1 deletion compiler/luci/service/src/CircleShapeInferenceHelper.h
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ loco::TensorShape circle_shape(const luci::CircleNode *node);
loco::TensorShape broadcast_shape(const loco::TensorShape &x, const loco::TensorShape &y);

// Return shape of pad ops using paddings.
// If paddings is static, return the shape filled with unknown dimensions.
// If paddings is not static, return the shape filled with unknown dimensions.
loco::TensorShape pad_shape(const loco::TensorShape &input_shape, const luci::CircleNode *paddings);

/**
Expand Down
3 changes: 1 addition & 2 deletions compiler/luci/service/src/Nodes/CirclePad.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -32,11 +32,10 @@ namespace sinf

loco::TensorShape Algorithm::visit(const luci::CirclePad *node)
{

auto paddings = loco::must_cast<const luci::CircleNode *>(node->paddings());

auto circle_input = loco::must_cast<const luci::CircleNode *>(node->input());
auto input_shape = circle_shape(circle_input);

return pad_shape(input_shape, paddings);
}

Expand Down

0 comments on commit 553a758

Please sign in to comment.