From 96daa2594e9e1e92bff7fd54275a9b45ed7fda25 Mon Sep 17 00:00:00 2001 From: whs Date: Sun, 27 Sep 2020 19:40:01 +0800 Subject: [PATCH] Fix padding in conv1d op (#27590) --- python/paddle/nn/layer/conv.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/python/paddle/nn/layer/conv.py b/python/paddle/nn/layer/conv.py index a610693a0a..3cc6a5a15b 100644 --- a/python/paddle/nn/layer/conv.py +++ b/python/paddle/nn/layer/conv.py @@ -248,7 +248,7 @@ class Conv1d(_ConvNd): padding = 0 if self._padding_mode != "zeros": x = F.pad(x, - self._padding, + self._reversed_padding_repeated_twice, mode=self._padding_mode, data_format=self._data_format) else: -- GitLab