Skip to content

Commit

Permalink
[luci/pass] Revise ForwardTransposeOpPass (Samsung#13224)
Browse files Browse the repository at this point in the history
This will revise ForwardTransposeOpPass to check I/O rank are same.

ONE-DCO-1.0-Signed-off-by: SaeHie Park <[email protected]>
  • Loading branch information
seanshpark authored Jun 18, 2024
1 parent 61b116f commit c9799f1
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions compiler/luci/pass/src/ForwardTransposeOpPass.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -164,6 +164,7 @@ class EBOWithConstPattern final : public CircleNodeMutableVisitor<bool>
{
if (auto y = dynamic_cast<luci::CircleTranspose *>(node->y()))
{
RETURN_FALSE_UNLESS(node->rank() == y->rank());
RETURN_FALSE_UNLESS(check_rank_four(x));
RETURN_FALSE_UNLESS(check_perm(y));

Expand All @@ -190,6 +191,7 @@ class EBOWithConstPattern final : public CircleNodeMutableVisitor<bool>
{
if (auto x = dynamic_cast<luci::CircleTranspose *>(node->x()))
{
RETURN_FALSE_UNLESS(node->rank() == x->rank());
RETURN_FALSE_UNLESS(check_rank_four(y));
RETURN_FALSE_UNLESS(check_perm(x));

Expand Down

0 comments on commit c9799f1

Please sign in to comment.