diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/Tensor/torch.Tensor.dsplit.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/Tensor/torch.Tensor.dsplit.md index 9db6885457c..7c5c36ff77d 100644 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/Tensor/torch.Tensor.dsplit.md +++ b/docs/guides/model_convert/convert_from_pytorch/api_difference/Tensor/torch.Tensor.dsplit.md @@ -1,9 +1,34 @@ ## [ 仅参数名不一致 ]torch.Tensor.dsplit +api 存在重载情况,分别如下: + +------------------------------------------------------------------------------------------------- + +### [torch.Tensor.dsplit](https://pytorch.org/docs/stable/generated/torch.Tensor.dsplit.html) + +```python +torch.Tensor.dsplit(sections) +``` + +### [paddle.Tensor.dsplit](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/Tensor_cn.html#dsplit-num_or_indices-name-none) + +```python +paddle.Tensor.dsplit(num_or_indices, name=None) +``` + +其中 Paddle 相比 PyTorch 仅参数名不一致,具体如下: + +### 参数映射 + +| PyTorch | PaddlePaddle | 备注 | +| ------------- | ------------ | ------------------------------------------------------ | +| sections | num_or_indices | 表示分割的数量,仅参数名不一致。 | + +------------------------------------------------------------------------------------------------- ### [torch.Tensor.dsplit](https://pytorch.org/docs/stable/generated/torch.Tensor.dsplit.html) ```python -torch.Tensor.dsplit(split_size_or_sections) +torch.Tensor.dsplit(indices) ``` ### [paddle.Tensor.dsplit](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/Tensor_cn.html#dsplit-num_or_indices-name-none) @@ -18,4 +43,4 @@ paddle.Tensor.dsplit(num_or_indices, name=None) | PyTorch | PaddlePaddle | 备注 | | ------------- | ------------ | ------------------------------------------------------ | -| split_size_or_sections | num_or_indices | 表示分割的数量或索引,仅参数名不一致。 | +| indices | num_or_indices | 表示分割的索引,仅参数名不一致。 | diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/Tensor/torch.Tensor.hsplit.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/Tensor/torch.Tensor.hsplit.md index 114ea061661..fccfa0ea794 100644 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/Tensor/torch.Tensor.hsplit.md +++ b/docs/guides/model_convert/convert_from_pytorch/api_difference/Tensor/torch.Tensor.hsplit.md @@ -1,9 +1,34 @@ ## [ 仅参数名不一致 ]torch.Tensor.hsplit +api 存在重载情况,分别如下: + +------------------------------------------------------------------------------------------------- + +### [torch.Tensor.hsplit](https://pytorch.org/docs/stable/generated/torch.Tensor.hsplit.html) + +```python +torch.Tensor.hsplit(sections) +``` + +### [paddle.Tensor.hsplit](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/Tensor_cn.html#hsplit-num_or_indices-name-none) + +```python +paddle.Tensor.hsplit(num_or_indices, name=None) +``` + +其中 Paddle 相比 PyTorch 仅参数名不一致,具体如下: + +### 参数映射 + +| PyTorch | PaddlePaddle | 备注 | +| ------------- | ------------ | ------------------------------------------------------ | +| sections | num_or_indices | 表示分割的数量,仅参数名不一致。 | + +------------------------------------------------------------------------------------------------- ### [torch.Tensor.hsplit](https://pytorch.org/docs/stable/generated/torch.Tensor.hsplit.html) ```python -torch.Tensor.hsplit(split_size_or_sections) +torch.Tensor.hsplit(indices) ``` ### [paddle.Tensor.hsplit](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/Tensor_cn.html#hsplit-num_or_indices-name-none) @@ -18,4 +43,4 @@ paddle.Tensor.hsplit(num_or_indices, name=None) | PyTorch | PaddlePaddle | 备注 | | ------------- | ------------ | ------------------------------------------------------ | -| split_size_or_sections | num_or_indices | 表示分割的数量或索引,仅参数名不一致。 | +| indices | num_or_indices | 表示分割的索引,仅参数名不一致。 | diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/Tensor/torch.Tensor.tensor_split.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/Tensor/torch.Tensor.tensor_split.md index 5926b3633e1..536226586f7 100644 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/Tensor/torch.Tensor.tensor_split.md +++ b/docs/guides/model_convert/convert_from_pytorch/api_difference/Tensor/torch.Tensor.tensor_split.md @@ -1,8 +1,51 @@ ## [ 仅参数名不一致 ]torch.Tensor.tensor_split +api 存在重载情况,分别如下: + +------------------------------------------------------------------------------------------------- + +### [torch.Tensor.tensor_split](https://pytorch.org/docs/stable/generated/torch.Tensor.tensor_split.html) + +```python +torch.Tensor.tensor_split(indices, dim=0) +``` + +### [paddle.Tensor.tensor_split](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/Tensor_cn.html#tensor_split-num_or_indices-axis-0-name-none) + +```python +paddle.Tensor.tensor_split(num_or_indices, axis=0, name=None) +``` + +其中 Paddle 相比 PyTorch 仅参数名不一致,具体如下: + +### 参数映射 + +| PyTorch | PaddlePaddle | 备注 | +| ------------- | ------------ | ------------------------------------------------------ | +| indices | num_or_indices | 表示分割的索引,仅参数名不一致。 | +| dim | axis | 表示需要分割的维度,仅参数名不一致。 | + +------------------------------------------------------------------------------------------------- + +### [torch.Tensor.tensor_split](https://pytorch.org/docs/stable/generated/torch.Tensor.tensor_split.html) + +```python +torch.Tensor.tensor_split(tensor_indices_or_sections, dim=0) +``` + +### [paddle.Tensor.tensor_split](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/Tensor_cn.html#tensor_split-num_or_indices-axis-0-name-none) + +```python +paddle.Tensor.tensor_split(num_or_indices, axis=0, name=None) +``` + +Paddle 当前无对应功能,功能缺失。 + +------------------------------------------------------------------------------------------------- + ### [torch.Tensor.tensor_split](https://pytorch.org/docs/stable/generated/torch.Tensor.tensor_split.html) ```python -torch.Tensor.tensor_split(indices_or_sections, dim=0) +torch.Tensor.tensor_split(sections, dim=0) ``` ### [paddle.Tensor.tensor_split](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/Tensor_cn.html#tensor_split-num_or_indices-axis-0-name-none) @@ -17,5 +60,5 @@ paddle.Tensor.tensor_split(num_or_indices, axis=0, name=None) | PyTorch | PaddlePaddle | 备注 | | ------------- | ------------ | ------------------------------------------------------ | -| indices_or_sections | num_or_indices | 表示分割的数量或索引,仅参数名不一致。 | +| sections | num_or_indices | 表示分割的数量,仅参数名不一致。 | | dim | axis | 表示需要分割的维度,仅参数名不一致。 | diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/torch/torch.dsplit.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/torch/torch.dsplit.md index 63be788aca7..f74cce2b8f8 100644 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/torch/torch.dsplit.md +++ b/docs/guides/model_convert/convert_from_pytorch/api_difference/torch/torch.dsplit.md @@ -1,9 +1,39 @@ ## [ 仅参数名不一致 ]torch.dsplit +api 存在重载情况,分别如下: + +------------------------------------------------------------------------------------------------- + +### [torch.dsplit](https://pytorch.org/docs/stable/generated/torch.dsplit.html#torch.dsplit) + +```python +torch.dsplit(input, + sections) +``` + +### [paddle.dsplit](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/dsplit_cn.html) + +```python +paddle.dsplit(x, + num_or_indices, + name=None) +``` + +其中 Paddle 相比 PyTorch 仅参数名不一致,具体如下: + +### 参数映射 + +| PyTorch | PaddlePaddle | 备注 | +| ------------- | ------------ | ------------------------------------------------------ | +| input | x | 输入多维 Tensor ,仅参数名不一致。 | +| sections | num_or_indices | 表示分割的数量,仅参数名不一致。 | + +------------------------------------------------------------------------------------------------- + ### [torch.dsplit](https://pytorch.org/docs/stable/generated/torch.dsplit.html#torch.dsplit) ```python torch.dsplit(input, - indices_or_sections) + indices) ``` ### [paddle.dsplit](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/dsplit_cn.html) @@ -21,4 +51,4 @@ paddle.dsplit(x, | PyTorch | PaddlePaddle | 备注 | | ------------- | ------------ | ------------------------------------------------------ | | input | x | 输入多维 Tensor ,仅参数名不一致。 | -| indices_or_sections | num_or_indices | 表示分割的数量或索引,仅参数名不一致。 | +| indices | num_or_indices | 表示分割的索引,仅参数名不一致。 | diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/torch/torch.hsplit.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/torch/torch.hsplit.md index 0225fab4cd5..770dce34f37 100644 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/torch/torch.hsplit.md +++ b/docs/guides/model_convert/convert_from_pytorch/api_difference/torch/torch.hsplit.md @@ -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         | 表示分割的数量,仅参数名不一致。                          | diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/torch/torch.tensor_split.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/torch/torch.tensor_split.md index a6f9f6bb1bd..7c1afe63dc1 100644 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/torch/torch.tensor_split.md +++ b/docs/guides/model_convert/convert_from_pytorch/api_difference/torch/torch.tensor_split.md @@ -1,8 +1,52 @@ ## [ 仅参数名不一致 ]torch.tensor_split +api 存在重载情况,分别如下: + +------------------------------------------------------------------------------------------------- + +### [torch.tensor_split](https://pytorch.org/docs/stable/generated/torch.tensor_split.html) + +```python +torch.tensor_split(input, indices, dim=0) +``` + +### [paddle.tensor_split](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/tensor_split_cn.html) + +```python +paddle.tensor_split(x, num_or_indices, axis=0, name=None) +``` + +其中 Paddle 相比 PyTorch 仅参数名不一致,具体如下: + +### 参数映射 + +| PyTorch | PaddlePaddle | 备注 | +| ------------- | ------------ | ------------------------------------------------------ | +| input | x | 表示输入的 Tensor ,仅参数名不一致。 | +| indices | num_or_indices | 表示分割的索引,仅参数名不一致。 | +| dim | axis | 表示需要分割的维度,仅参数名不一致。 | + +------------------------------------------------------------------------------------------------- + +### [torch.tensor_split](https://pytorch.org/docs/stable/generated/torch.tensor_split.html) + +```python +torch.tensor_split(input, tensor_indices_or_sections, dim=0) +``` + +### [paddle.tensor_split](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/tensor_split_cn.html) + +```python +paddle.tensor_split(x, num_or_indices, axis=0, name=None) +``` + +paddle 当前无对应功能,功能缺失。 + +------------------------------------------------------------------------------------------------- + ### [torch.tensor_split](https://pytorch.org/docs/stable/generated/torch.tensor_split.html) ```python -torch.tensor_split(input, indices_or_sections, dim=0) +torch.tensor_split(input, sections, dim=0) ``` ### [paddle.tensor_split](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/tensor_split_cn.html) @@ -18,5 +62,5 @@ paddle.tensor_split(x, num_or_indices, axis=0, name=None) | PyTorch | PaddlePaddle | 备注 | | ------------- | ------------ | ------------------------------------------------------ | | input | x | 表示输入的 Tensor ,仅参数名不一致。 | -| indices_or_sections | num_or_indices | 表示分割的数量或索引,仅参数名不一致。 | +| sections | num_or_indices | 表示分割的数量,仅参数名不一致。 | | dim | axis | 表示需要分割的维度,仅参数名不一致。 |