File tree Expand file tree Collapse file tree 2 files changed +3
-4
lines changed Expand file tree Collapse file tree 2 files changed +3
-4
lines changed Original file line number Diff line number Diff line change @@ -7,6 +7,7 @@ python_library(
7
7
deps = [
8
8
"//executorch/backends/arm:tosa_quant_utils",
9
9
"//executorch/backends/arm:tosa_utils",
10
+ "//executorch/backends/xnnpack/_passes:xnnpack_passes",
10
11
"//executorch/exir:lib",
11
12
],
12
13
)
Original file line number Diff line number Diff line change 4
4
# LICENSE file in the root directory of this source tree.
5
5
6
6
# pyre-unsafe
7
- from typing import cast , List
7
+ from typing import List
8
8
9
9
import serializer .tosa_serializer as ts
10
10
import torch
@@ -54,9 +54,7 @@ def define_node(
54
54
output_zp = 0
55
55
56
56
if is_quant_node :
57
- input_zp = get_quant_node_args (
58
- cast (torch .fx .Node , node .all_input_nodes [0 ])
59
- ).zp
57
+ input_zp = get_quant_node_args (node .all_input_nodes [0 ]).zp
60
58
output_zp = get_quant_node_args (list (node .users )[0 ]).zp
61
59
62
60
attr = ts .TosaSerializerAttribute ()
You can’t perform that action at this time.
0 commit comments