未验证 提交 96daa259 编写于 作者: W whs 提交者: GitHub

Fix padding in conv1d op (#27590)

上级 1501a80f
...@@ -248,7 +248,7 @@ class Conv1d(_ConvNd): ...@@ -248,7 +248,7 @@ class Conv1d(_ConvNd):
padding = 0 padding = 0
if self._padding_mode != "zeros": if self._padding_mode != "zeros":
x = F.pad(x, x = F.pad(x,
self._padding, self._reversed_padding_repeated_twice,
mode=self._padding_mode, mode=self._padding_mode,
data_format=self._data_format) data_format=self._data_format)
else: else:
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册