From 00c0c4561484d445066d7b67659e6fddc927e869 Mon Sep 17 00:00:00 2001 From: lzzyzlbb <287246233@qq.com> Date: Thu, 22 Jul 2021 10:30:18 +0800 Subject: [PATCH] [cherrypick 2.1.2]fix the order of unfold parameters (#34251) * fix the order of unfold parameters (#34156) * fix the order of unfold parameters * fix the order of unfold parameters (#34156) * fix the order of unfold parameters * fix unfold --- python/paddle/nn/layer/common.py | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/python/paddle/nn/layer/common.py b/python/paddle/nn/layer/common.py index f608f20feef..1d7f7c65899 100644 --- a/python/paddle/nn/layer/common.py +++ b/python/paddle/nn/layer/common.py @@ -1428,8 +1428,13 @@ class Unfold(layers.Layer): self.name = name def forward(self, input): - return F.unfold(input, self.kernel_sizes, self.dilations, self.paddings, - self.strides, self.name) + return F.unfold( + input, + kernel_sizes=self.kernel_sizes, + strides=self.strides, + paddings=self.paddings, + dilations=self.dilations, + name=self.name) def extra_repr(self): name_str = ', name={}'.format(self.name) if self.name else '' -- GitLab