Skip to content

Commit 90e55dd

Browse files
committed
lint
1 parent 04264ac commit 90e55dd

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

exir/pass_base.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -566,7 +566,7 @@ def call_scan(
566566
num_init = len(init)
567567
# The x_element placeholders are at indices [num_init : num_init + num_xs]
568568
xs_element_data = []
569-
for i, x_proxy in enumerate(xs):
569+
for i in range(0, len(xs)):
570570
ph = combine_fn_placeholders[num_init + i]
571571
# Use the placeholder's val which has the correct shape
572572
xs_element_data.append(ph.meta["val"])

exir/passes/spec_prop_pass.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,11 @@
77
# pyre-strict
88

99
import operator
10-
from typing import List, Optional
10+
from typing import Optional
1111

1212
import torch
1313
from executorch.exir.delegate import executorch_call_delegate
14-
from executorch.exir.pass_base import ExportPass, NodeMetadata, ProxyValue
14+
from executorch.exir.pass_base import ExportPass, ProxyValue
1515
from executorch.exir.tensor import TensorSpec
1616
from torch.export.exported_program import ExportGraphSignature
1717
from torch.fx.node import Node

0 commit comments

Comments
 (0)