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 88
99import serializer .tosa_serializer as ts
1010import torch
11+
12+ # pyre-fixme[21]: 'Could not find a module corresponding to import `executorch.backends.arm._passes.fold_qdq_with_annotated_qparams_pass`.'
1113from executorch .backends .arm ._passes .fold_qdq_with_annotated_qparams_pass import (
1214 get_input_qparams ,
1315 get_output_qparams ,
Original file line number Diff line number Diff line change @@ -45,9 +45,9 @@ def define_node(
4545 scale_back = 1.0
4646 max_output = output
4747 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`.'
4949 node
50- ) # pyre-ignore[16]: 'Module `executorch.backends.arm` has no attribute `_passes`.'
50+ )
5151 assert (
5252 len (input_qparams ) == 2
5353 ), 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(
4646 scale_back = 1.0
4747 min_output = output
4848 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`.'
5050 node
51- ) # pyre-ignore[16]: 'Module `executorch.backends.arm` has no attribute `_passes`.'
51+ )
5252 assert (
5353 len (input_qparams ) == 2
5454 ), 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(
114114 _ ,
115115 ) = consumer_node .all_input_nodes
116116
117- input_qargs = get_input_qparams (
117+ input_qargs = get_input_qparams ( # pyre-ignore[16]: Module `executorch.backends.arm` has no attribute `_passes`.
118118 consumer_node
119- ) # pyre-ignore[16]: Module `executorch.backends.arm` has no attribute `_passes`.
119+ )
120120
121121 input_node_scale = input_qargs [0 ].scale
122122 weight_node_scale = input_qargs [1 ].scale
You can’t perform that action at this time.
0 commit comments