From 1735ed324e432d16c60ba215146864ad2dac9620 Mon Sep 17 00:00:00 2001 From: ruri Date: Wed, 29 May 2019 14:18:20 +0800 Subject: [PATCH] fix im2sequence padding bug, test=develop (#17660) fix im2sequence padding bug --- python/paddle/fluid/layers/nn.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/python/paddle/fluid/layers/nn.py b/python/paddle/fluid/layers/nn.py index 1250d8a59..d1da62045 100644 --- a/python/paddle/fluid/layers/nn.py +++ b/python/paddle/fluid/layers/nn.py @@ -6099,7 +6099,7 @@ def im2sequence(input, padding.append(padding[0]) padding.append(padding[1]) inputs = {"X": input} - attrs = {"kernels": filter_size, "strides": stride, "padding": padding} + attrs = {"kernels": filter_size, "strides": stride, "paddings": padding} if input_image_size: if isinstance(out_stride, int): out_stride = [out_stride, out_stride] -- GitLab