From 5d89ec36dc36c3b09a3972db326a2d41c4a330a5 Mon Sep 17 00:00:00 2001 From: parap1uie-s Date: Wed, 24 Mar 2021 17:25:00 +0800 Subject: [PATCH] Update pooling.py (#31829) Fix default argument of nn.MaxPool3D() --- python/paddle/nn/layer/pooling.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/python/paddle/nn/layer/pooling.py b/python/paddle/nn/layer/pooling.py index 0f3c4449a3f..5830af3a182 100755 --- a/python/paddle/nn/layer/pooling.py +++ b/python/paddle/nn/layer/pooling.py @@ -589,8 +589,8 @@ class MaxPool3D(layers.Layer): def __init__(self, kernel_size, - stride, - padding, + stride=None, + padding=0, return_mask=False, ceil_mode=False, data_format="NCDHW", -- GitLab