Skip to content

Commit 686ec42

Browse files
author
Joey Tsai
committed
Qualcomm AI Engine Direct - Fix error of avg pool2d
- Fix the ceil_mode if condition of avg_pool2d
1 parent 95a1db5 commit 686ec42

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

backends/qualcomm/builders/op_avg_pool2d.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ def define_node(
5353
nodes_to_wrappers,
5454
)
5555

56-
pt_ceil_mode = node.args[4] if len(node.args) >= 4 else False
56+
pt_ceil_mode = node.args[4] if len(node.args) > 4 else False
5757

5858
# kernel info
5959
input_shape = input_node.meta["val"].shape

0 commit comments

Comments
 (0)