File tree Expand file tree Collapse file tree 4 files changed +8
-6
lines changed Expand file tree Collapse file tree 4 files changed +8
-6
lines changed Original file line number Diff line number Diff line change 8
8
9
9
import serializer .tosa_serializer as ts
10
10
import torch
11
+
12
+ # pyre-fixme[21]: 'Could not find a module corresponding to import `executorch.backends.arm._passes.fold_qdq_with_annotated_qparams_pass`.'
11
13
from executorch .backends .arm ._passes .fold_qdq_with_annotated_qparams_pass import (
12
14
get_input_qparams ,
13
15
get_output_qparams ,
Original file line number Diff line number Diff line change @@ -45,9 +45,9 @@ def define_node(
45
45
scale_back = 1.0
46
46
max_output = output
47
47
if inputs [0 ].dtype == ts .DType .INT8 :
48
- input_qparams = get_input_qparams (
48
+ input_qparams = get_input_qparams ( # pyre-ignore[16]: 'Module `executorch.backends.arm` has no attribute `_passes`.'
49
49
node
50
- ) # pyre-ignore[16]: 'Module `executorch.backends.arm` has no attribute `_passes`.'
50
+ )
51
51
assert (
52
52
len (input_qparams ) == 2
53
53
), f"Both inputs needs to have quantization information for { node } "
Original file line number Diff line number Diff line change @@ -46,9 +46,9 @@ def define_node(
46
46
scale_back = 1.0
47
47
min_output = output
48
48
if inputs [0 ].dtype == ts .DType .INT8 :
49
- input_qparams = get_input_qparams (
49
+ input_qparams = get_input_qparams ( # pyre-ignore[16]: 'Module `executorch.backends.arm` has no attribute `_passes`.'
50
50
node
51
- ) # pyre-ignore[16]: 'Module `executorch.backends.arm` has no attribute `_passes`.'
51
+ )
52
52
assert (
53
53
len (input_qparams ) == 2
54
54
), f"Both inputs needs to have quantization information for { node } "
Original file line number Diff line number Diff line change @@ -114,9 +114,9 @@ def process_quantized_bias(
114
114
_ ,
115
115
) = consumer_node .all_input_nodes
116
116
117
- input_qargs = get_input_qparams (
117
+ input_qargs = get_input_qparams ( # pyre-ignore[16]: Module `executorch.backends.arm` has no attribute `_passes`.
118
118
consumer_node
119
- ) # pyre-ignore[16]: Module `executorch.backends.arm` has no attribute `_passes`.
119
+ )
120
120
121
121
input_node_scale = input_qargs [0 ].scale
122
122
weight_node_scale = input_qargs [1 ].scale
You can’t perform that action at this time.
0 commit comments