From fc2951ecf64773767e633f23aa1e740abcf89f33 Mon Sep 17 00:00:00 2001 From: nihuini Date: Wed, 6 Aug 2025 10:13:35 +0800 Subject: [PATCH] f --- tools/pnnx/src/pass_level2/torch_flip.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/tools/pnnx/src/pass_level2/torch_flip.cpp b/tools/pnnx/src/pass_level2/torch_flip.cpp index 260810354..fc78aecc1 100644 --- a/tools/pnnx/src/pass_level2/torch_flip.cpp +++ b/tools/pnnx/src/pass_level2/torch_flip.cpp @@ -49,12 +49,11 @@ pnnx.Output output 1 0 out { if (captured_params.at("axes").type == 2) { - int axis = captured_params.at("axes").i; int start = captured_params.at("starts").i; int end = captured_params.at("ends").i; int step = captured_params.at("steps").i; - if (axis == 0 && start == -1 && end == INT_MIN + 1 && step == -1) + if (start == -1 && end == INT_MIN + 1 && step == -1) return true; } else // if (captured_params.at("axes").type == 5)