Skip to content

Commit

Permalink
Ignore C901 in index.Tensor upper bound calculation (pytorch#1033)
Browse files Browse the repository at this point in the history
Summary:
Pull Request resolved: pytorch#1033

Ignore C901

Reviewed By: dbort

Differential Revision: D50477317

fbshipit-source-id: 18aeb77b7824b330b390ce74945be0a9d77ec385
  • Loading branch information
manuelcandales authored and facebook-github-bot committed Oct 20, 2023
1 parent ff20f40 commit a629008
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion exir/passes/sym_shape_eval_pass.py
Original file line number Diff line number Diff line change
Expand Up @@ -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]

Expand Down

0 comments on commit a629008

Please sign in to comment.