diff --git a/python/paddle/nn/layer/common.py b/python/paddle/nn/layer/common.py index f608f20feef55ef526884eb10eff44cdcdae93ec..1d7f7c6589986bdf478347d428c5ec689a7be882 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 ''