forked from PaddlePaddle/docs
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add files via upload (PaddlePaddle#6668)
- Loading branch information
1 parent
20525ab
commit 207ce38
Showing
1 changed file
with
23 additions
and
0 deletions.
There are no files selected for viewing
23 changes: 23 additions & 0 deletions
23
...nvert/convert_from_pytorch/api_difference/Tensor/torch.Tensor.select_scatter.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
## [ 仅参数名不一致 ] torch.Tensor.select_scatter | ||
|
||
### [torch.Tensor.select_scatter](https://pytorch.org/docs/stable/generated/torch.Tensor.select_scatter.html#torch-select-scatter) | ||
|
||
```python | ||
torch.Tensor.select_scatter(src, dim, index) | ||
``` | ||
|
||
### [paddle.Tensor.select_scatter](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/Tensor_cn.html#) | ||
|
||
```python | ||
paddle.Tensor.select_scatter(values, axis, index, name=None) | ||
``` | ||
|
||
两者功能一致且参数用法一致,仅参数名不一致,具体如下: | ||
|
||
### 参数映射 | ||
|
||
| PyTorch | PaddlePaddle | 备注 | | ||
| ------- | ------------ | ---------------------------------------- | | ||
| src | values | 用于嵌入的张量,仅参数名不一致。 | | ||
| dim | axis | 嵌入的维度,仅参数名不一致。 | | ||
| index | index | 选择的索引。 | |