Skip to content

Commit

Permalink
修改参数名不统一的错误,如kernel_size->kernel_sizes,dilation->dilations (#6794)
Browse files Browse the repository at this point in the history
  • Loading branch information
EgoistSA authored Jul 30, 2024
1 parent dd12e14 commit 172f189
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,10 @@ torch.nn.Unfold(kernel_size,
### [paddle.nn.Unfold](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/nn/Unfold_cn.html#unfold)

```python
paddle.nn.Unfold(kernel_size=[3, 3],
paddle.nn.Unfold(kernel_sizes=[3, 3],
strides=1,
paddings=1,
dilation=1,
dilations=1,
name=None)
```

Expand All @@ -35,5 +35,5 @@ paddle.nn.Unfold(kernel_size=[3, 3],
unfold = nn.Unfold(kernel_size=(2, 3))

# Paddle 写法
unfold = nn.Unfold(kernel_size=[2, 3])
unfold = nn.Unfold(kernel_sizes=[2, 3])
```

0 comments on commit 172f189

Please sign in to comment.