Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions backends/arm/_passes/TARGETS
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ python_library(
deps = [
"//executorch/backends/arm:tosa_quant_utils",
"//executorch/backends/arm:tosa_utils",
"//executorch/backends/xnnpack/_passes:xnnpack_passes",
"//executorch/exir:lib",
],
)
6 changes: 2 additions & 4 deletions backends/arm/operators/op_max_pool2d.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
# LICENSE file in the root directory of this source tree.

# pyre-unsafe
from typing import cast, List
from typing import List

import serializer.tosa_serializer as ts
import torch
Expand Down Expand Up @@ -54,9 +54,7 @@ def define_node(
output_zp = 0

if is_quant_node:
input_zp = get_quant_node_args(
cast(torch.fx.Node, node.all_input_nodes[0])
).zp
input_zp = get_quant_node_args(node.all_input_nodes[0]).zp
output_zp = get_quant_node_args(list(node.users)[0]).zp

attr = ts.TosaSerializerAttribute()
Expand Down