From a62900819635460d25eb6483648aacc4a27df77d Mon Sep 17 00:00:00 2001 From: Manuel Candales Date: Fri, 20 Oct 2023 07:56:54 -0700 Subject: [PATCH] Ignore C901 in index.Tensor upper bound calculation (#1033) Summary: Pull Request resolved: https://github.com/pytorch/executorch/pull/1033 Ignore C901 Reviewed By: dbort Differential Revision: D50477317 fbshipit-source-id: 18aeb77b7824b330b390ce74945be0a9d77ec385 --- exir/passes/sym_shape_eval_pass.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/exir/passes/sym_shape_eval_pass.py b/exir/passes/sym_shape_eval_pass.py index 5566af98aa..c1e3cdfe5d 100644 --- a/exir/passes/sym_shape_eval_pass.py +++ b/exir/passes/sym_shape_eval_pass.py @@ -34,7 +34,7 @@ def nonzero(args, kwargs) -> List[Optional[int]]: @register_upper_bound_inference(exir_ops.edge.aten.index.Tensor) @register_upper_bound_inference(torch.ops.aten.index.Tensor) -def index_Tensor(args, kwargs) -> List[Optional[int]]: +def index_Tensor(args, kwargs) -> List[Optional[int]]: # noqa: C901 tensor = args[0] indices = args[1]