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.
* fix hsplit * fix docs * fix * fix-docs1 * fix docs
- Loading branch information
Showing
6 changed files
with
213 additions
and
16 deletions.
There are no files selected for viewing
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
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
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
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
42 changes: 36 additions & 6 deletions
42
.../guides/model_convert/convert_from_pytorch/api_difference/torch/torch.hsplit.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 |
---|---|---|
@@ -1,24 +1,54 @@ | ||
## [ 仅参数名不一致 ]torch.hsplit | ||
api 存在重载情况,分别如下: | ||
|
||
------------------------------------------------------------------------------------------------- | ||
|
||
### [torch.hsplit](https://pytorch.org/docs/stable/generated/torch.hsplit.html#torch.hsplit) | ||
|
||
```python | ||
torch.hsplit(input, | ||
sections) | ||
``` | ||
|
||
### [paddle.hsplit](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/hsplit_cn.html) | ||
|
||
```python | ||
paddle.hsplit(x, | ||
num_or_indices, | ||
name=None) | ||
``` | ||
|
||
其中 Paddle 相比 PyTorch 仅参数名不一致,具体如下: | ||
|
||
### 参数映射 | ||
|
||
| PyTorch | PaddlePaddle | 备注 | | ||
| ------------- | ------------ | ------------------------------------------------------ | | ||
| input | x | 输入多维 Tensor ,仅参数名不一致。 | | ||
| sections | num_or_indices | 表示分割的数量,仅参数名不一致。 | | ||
|
||
------------------------------------------------------------------------------------------------- | ||
|
||
### [torch.hsplit](https://pytorch.org/docs/stable/generated/torch.hsplit.html#torch.hsplit) | ||
|
||
```python | ||
torch.hsplit(input, | ||
indices_or_sections) | ||
indices) | ||
``` | ||
|
||
### [paddle.hsplit](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/hsplit_cn.html) | ||
|
||
```python | ||
paddle.hsplit(x, | ||
num_or_indices, | ||
name=None) | ||
num_or_indices, | ||
name=None) | ||
``` | ||
|
||
其中 Paddle 相比 PyTorch 仅参数名不一致,具体如下: | ||
|
||
### 参数映射 | ||
|
||
| PyTorch | PaddlePaddle | 备注 | | ||
| PyTorch | PaddlePaddle | 备注 | | ||
| ------------- | ------------ | ------------------------------------------------------ | | ||
| input | x | 输入多维 Tensor ,仅参数名不一致。 | | ||
| indices_or_sections | num_or_indices | 表示分割的数量或索引,仅参数名不一致。 | | ||
| input | x | 输入多维 Tensor ,仅参数名不一致。 | | ||
| indices | num_or_indices | 表示分割的数量,仅参数名不一致。 | |
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