Skip to content

Commit d4906e2

Browse files
chunit-quicJoey Tsai
andauthored
Qualcomm AI Engine Direct - Fix error of avg pool2d (#11275)
- Fix the ceil_mode if condition of avg_pool2d Co-authored-by: Joey Tsai <[email protected]>
1 parent d5c4ba7 commit d4906e2

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)