File tree Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Original file line number Diff line number Diff line change 66
77import copy
88
9- from typing import Callable , cast , Iterable
9+ from typing import cast , Iterable
1010
1111from executorch .backends .arm .tosa_quant_utils import QuantArgs
1212
1313from executorch .exir .dialects ._ops import ops as exir_ops
14+ from executorch .exir .dialects .edge ._ops import EdgeOpOverload
1415
1516from executorch .exir .pass_base import ExportPass , PassResult
1617from 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
2223def 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
You can’t perform that action at this time.
0 commit comments