-
Notifications
You must be signed in to change notification settings - Fork 766
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Add api_difference docs * Fix
- Loading branch information
Showing
3 changed files
with
65 additions
and
0 deletions.
There are no files selected for viewing
21 changes: 21 additions & 0 deletions
21
...api_difference/distributions/torch.distributions.transforms.SoftmaxTransform.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,21 @@ | ||
## [torch 参数更多]torch.distributions.transforms.SoftmaxTransform | ||
|
||
### [torch.distributions.transforms.SoftmaxTransform](https://pytorch.org/docs/stable/distributions.html#torch.distributions.transforms.SoftmaxTransform) | ||
|
||
```python | ||
torch.distributions.transforms.SoftmaxTransform(cache_size=0) | ||
``` | ||
|
||
### [paddle.distribution.SoftmaxTransform](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/distribution/SoftmaxTransform_cn.html) | ||
|
||
```python | ||
paddle.distribution.SoftmaxTransform() | ||
``` | ||
|
||
其中 PyTorch 相比 Paddle 支持更多其他参数,具体如下: | ||
|
||
### 参数映射 | ||
|
||
| PyTorch | PaddlePaddle | 备注 | | ||
| ---------- | ------------ | -------------------------------------------------------------------------- | | ||
| cache_size | - | 表示 cache 大小,Paddle 无此参数,一般对网络训练结果影响不大,可直接删除。 | |
23 changes: 23 additions & 0 deletions
23
...h/api_difference/distributions/torch.distributions.transforms.StackTransform.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 参数更多]torch.distributions.transforms.StackTransform | ||
|
||
### [torch.distributions.transforms.StackTransform](https://pytorch.org/docs/stable/distributions.html#torch.distributions.transforms.StackTransform) | ||
|
||
```python | ||
torch.distributions.transforms.StackTransform(tseq, dim=0, cache_size=0) | ||
``` | ||
|
||
### [paddle.distribution.StackTransform](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/distribution/StackTransform_cn.html) | ||
|
||
```python | ||
paddle.distribution.StackTransform(transforms, axis=0) | ||
``` | ||
|
||
其中 PyTorch 相比 Paddle 支持更多其他参数,具体如下: | ||
|
||
### 参数映射 | ||
|
||
| PyTorch | PaddlePaddle | 备注 | | ||
| ---------- | ------------ | -------------------------------------------------------------------------- | | ||
| tseq | transforms | 输入的变换序列,仅参数名不一致。 | | ||
| dim | axis | 待变换的轴,仅参数名不一致。 | | ||
| cache_size | - | 表示 cache 大小,Paddle 无此参数,一般对网络训练结果影响不大,可直接删除。 | |
21 changes: 21 additions & 0 deletions
21
...fference/distributions/torch.distributions.transforms.StickBreakingTransform.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,21 @@ | ||
## [torch 参数更多]torch.distributions.transforms.StickBreakingTransform | ||
|
||
### [torch.distributions.transforms.StickBreakingTransform](https://pytorch.org/docs/stable/distributions.html#torch.distributions.transforms.StickBreakingTransform) | ||
|
||
```python | ||
torch.distributions.transforms.StickBreakingTransform(cache_size=0) | ||
``` | ||
|
||
### [paddle.distribution.StickBreakingTransform](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/distribution/StickBreakingTransform_cn.html) | ||
|
||
```python | ||
paddle.distribution.StickBreakingTransform() | ||
``` | ||
|
||
其中 PyTorch 相比 Paddle 支持更多其他参数,具体如下: | ||
|
||
### 参数映射 | ||
|
||
| PyTorch | PaddlePaddle | 备注 | | ||
| ---------- | ------------ | -------------------------------------------------------------------------- | | ||
| cache_size | - | 表示 cache 大小,Paddle 无此参数,一般对网络训练结果影响不大,可直接删除。 | |