Skip to content

Commit 0e8162c

Browse files
committed
Fix more typecheckings
Change-Id: I37fb7468b5cb040b916fabb2784ec475318bddba
1 parent 2580dca commit 0e8162c

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

backends/arm/_passes/fold_qdq_with_annotated_qparams_pass.py

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,17 +6,18 @@
66

77
import copy
88

9-
from typing import Callable, cast, Iterable
9+
from typing import cast, Iterable
1010

1111
from executorch.backends.arm.tosa_quant_utils import QuantArgs
1212

1313
from executorch.exir.dialects._ops import ops as exir_ops
14+
from executorch.exir.dialects.edge._ops import EdgeOpOverload
1415

1516
from executorch.exir.pass_base import ExportPass, PassResult
1617
from torch.fx import GraphModule, Node
1718

18-
q_op = exir_ops.edge.quantized_decomposed.quantize_per_tensor.default
19-
dq_op = exir_ops.edge.quantized_decomposed.dequantize_per_tensor.default
19+
q_op: EdgeOpOverload = exir_ops.edge.quantized_decomposed.quantize_per_tensor.default
20+
dq_op: EdgeOpOverload = exir_ops.edge.quantized_decomposed.dequantize_per_tensor.default
2021

2122

2223
def get_input_qparams(node: Node) -> dict[int, QuantArgs]:
@@ -75,7 +76,7 @@ class FoldAndAnnotateQParamsPass(ExportPass):
7576
7677
"""
7778

78-
def __init__(self, targeted_ops: Iterable[Callable]):
79+
def __init__(self, targeted_ops: Iterable[EdgeOpOverload]) -> None:
7980
super().__init__()
8081
self.targeted_ops = targeted_ops
8182

0 commit comments

Comments
 (0)