Skip to content

Commit fc2951e

Browse files
committed
f
1 parent fe7c76a commit fc2951e

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

tools/pnnx/src/pass_level2/torch_flip.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,12 +49,11 @@ pnnx.Output output 1 0 out
4949
{
5050
if (captured_params.at("axes").type == 2)
5151
{
52-
int axis = captured_params.at("axes").i;
5352
int start = captured_params.at("starts").i;
5453
int end = captured_params.at("ends").i;
5554
int step = captured_params.at("steps").i;
5655

57-
if (axis == 0 && start == -1 && end == INT_MIN + 1 && step == -1)
56+
if (start == -1 && end == INT_MIN + 1 && step == -1)
5857
return true;
5958
}
6059
else // if (captured_params.at("axes").type == 5)

0 commit comments

Comments
 (0)