Skip to content

Commit 21aba57

Browse files
houseroadezyang
authored andcommitted
Fix a bug in ONNX symbolic of average 3d pooling op (#6101)
1 parent f5d0d94 commit 21aba57

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

torch/onnx/symbolic.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -420,7 +420,7 @@ def avg_pool3d(g, input, kernel_size, stride, padding, ceil_mode, count_include_
420420
return g.op("AveragePool", input,
421421
kernel_shape_i=_triple(kernel_size),
422422
strides_i=_triple(stride),
423-
pads_i=_triple(padding))
423+
pads_i=_triple(padding) * 2)
424424

425425

426426
def reflection_pad(g, input, padding):

0 commit comments

Comments
 (0)