Skip to content

Commit

Permalink
【映射文档】更新映射文档函数签名 (#6513)
Browse files Browse the repository at this point in the history
* update torch.nn.functional.interpolate based on Paddle/#61974

* update torch.nn.functional.interpolate based on Paddle/#56471
  • Loading branch information
RedContritio authored Mar 5, 2024
1 parent 0c1dd9f commit 5433d71
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ torch.nn.functional.interpolate(input, size=None, scale_factor=None, mode='neare
### [paddle.nn.functional.interpolate](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/nn/functional/interpolate_cn.html)

```python
paddle.nn.functional.interpolate(x, size=None, scale_factor=None, mode='nearest', align_corners=False, align_mode=0, data_format='NCHW', name=None)
paddle.nn.functional.interpolate(x, size=None, scale_factor=None, mode='nearest', align_corners=False, align_mode=0, data_format=None, name=None)
```

PyTorch 相比 Paddle 支持更多其他参数,具体如下:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ paddle.nn.functional.upsample(x,
mode='nearest',
align_corners=False,
align_mode=0,
data_format='NCHW',
data_format=None,
name=None)
```

Expand Down

0 comments on commit 5433d71

Please sign in to comment.