File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change 1717
1818from executorch .backends .arm .tosa_quant_utils import (
1919 dequantize_value ,
20- get_quant_node_args ,
2120 QuantArgs ,
2221 quantize_value ,
22+ search_quant_arg_downstream ,
23+ search_quant_arg_upstream ,
2324)
2425from serializer .tosa_serializer import TosaOp
2526from torch .fx import Node
@@ -49,9 +50,9 @@ def define_node(
4950
5051 # Create attribute for 8 bit table lookup.
5152 input_node = node .all_input_nodes [0 ]
52- in_quantargs = get_quant_node_args (input_node )
53+ in_quantargs = search_quant_arg_upstream (input_node )
5354 output_node = list (node .users )[0 ]
54- out_quantargs = get_quant_node_args (output_node )
55+ out_quantargs = search_quant_arg_downstream (output_node )
5556
5657 table = tanh_table_8bit (in_quantargs , out_quantargs )
5758 table_attr = ts .TosaSerializerAttribute ()
You can’t perform that action at this time.
0 commit comments