From 9ccddbcda601022ce4c437493905393d04208168 Mon Sep 17 00:00:00 2001 From: Li-fAngyU <972117977@qq.com> Date: Thu, 22 Jun 2023 15:45:53 +0800 Subject: [PATCH 1/9] =?UTF-8?q?=E6=96=87=E6=A1=A3=E6=98=A0=E5=B0=84=2016~1?= =?UTF-8?q?9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../api_difference/ops/torch.cummin.md | 40 +++++++++++++++++++ .../api_difference/ops/torch.searchsorted.md | 16 +++++++- .../api_difference/ops/torch.vander.md | 26 ++++++++++++ .../pytorch_api_mapping_cn.md | 1 + 4 files changed, 81 insertions(+), 2 deletions(-) create mode 100644 docs/guides/model_convert/convert_from_pytorch/api_difference/ops/torch.cummin.md create mode 100644 docs/guides/model_convert/convert_from_pytorch/api_difference/ops/torch.vander.md diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/ops/torch.cummin.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/ops/torch.cummin.md new file mode 100644 index 00000000000..cd20fef1c6e --- /dev/null +++ b/docs/guides/model_convert/convert_from_pytorch/api_difference/ops/torch.cummin.md @@ -0,0 +1,40 @@ +## [ torch 参数更多 ]torch.cummin + +### [torch.cummin](https://pytorch.org/docs/stable/generated/torch.cummin.html) + +```python +torch.cummin(input, + dim, + *, + out=None) +``` + +### [paddle.cummin](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/cummin_cn.html) + +```python +paddle.cummin(x, + axis=None, + dtype='int64', + name=None) +``` + +两者功能一致,仅参数名不一致,具体如下: + +### 参数映射 +| PyTorch | PaddlePaddle | 备注 | +| ------------- | ------------ | ------------------------------------------------------ | +| input | x | 表示输入的 Tensor,仅参数名不一致。 | +| dim | axis | 用于指定 index 获取输入的维度, 仅参数名不一致。 | +| - | dtype | 指定输出索引的数据格式, PyTorch 无此参数, Paddle 保持默认即可。 | +| out | - | 表示输出的 Tensor, Paddle 无此参数,需要进行转写。 | + +### 转写示例 +#### out:指定输出 + +```python +# Pytorch 写法 +torch.cummin(x,1, out=(values, indices)) + +# Paddle 写法 +paddle.assign(paddle.cummin(x,y), (values, indices)) +``` diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/ops/torch.searchsorted.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/ops/torch.searchsorted.md index 6cfa06c7881..fa46a8ae6c1 100644 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/ops/torch.searchsorted.md +++ b/docs/guides/model_convert/convert_from_pytorch/api_difference/ops/torch.searchsorted.md @@ -3,13 +3,24 @@ ### [torch.searchsorted](https://pytorch.org/docs/1.13/generated/torch.searchsorted.html#torch-searchsorted) ```python -torch.searchsorted(sorted_sequence, values, *, out_int32=False, right=False, side='left', out=None, sorter=None) +torch.searchsorted(sorted_sequence, + values, + *, + out_int32=False, + right=False, + side='left', + out=None, + sorter=None) ``` ### [paddle.searchsorted](https://www.paddlepaddle.org.cn/documentation/docs/zh/api/paddle/searchsorted_cn.html#searchsorted) ```python -paddle.searchsorted(sorted_sequence, values, out_int32=False, right=False, name=None) +paddle.searchsorted(sorted_sequence, + values, + out_int32=False, + right=False, + name=None) ``` 其中 PyTorch 相比 Paddle 支持更多其他参数,具体如下: @@ -25,6 +36,7 @@ paddle.searchsorted(sorted_sequence, values, out_int32=False, right=False, name= | out | - | 表示输出的 Tensor,Paddle 无此参数,需要进行转写。 | | sorter | - | 表示 sorted_sequence 元素无序时对应的升序索引,Paddle 无此参数,一般对网络训练结果影响不大,可直接删除。 | +### 转写示例 #### side:指定查找对应的上边界或下边界 ```python diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/ops/torch.vander.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/ops/torch.vander.md new file mode 100644 index 00000000000..28627821442 --- /dev/null +++ b/docs/guides/model_convert/convert_from_pytorch/api_difference/ops/torch.vander.md @@ -0,0 +1,26 @@ +## [ 参数完全一致 ]torch.vander + +### [torch.vander](https://pytorch.org/docs/stable/generated/torch.vander.html?highlight=vander#torch.vander) + +```python +torch.vander(x, + N, + increasing) +``` + +### [paddle.vander](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/vander_cn.html#vander) + +```python +paddle.vander(x, + N, + increasing) +``` + +两者功能一致,参数完全一致,具体如下: + +### 参数映射 +| PyTorch | PaddlePaddle | 备注 | +| ------------- | ------------ | ------------------------------------------------------ | +| x | x | 表示输入的 Tensor。 | +| N | N | 用于指定输出的列数。 | +| increasing | increasing | 指定输出列的幂次顺序。如果为 True,则幂次从左到右增加。 | diff --git a/docs/guides/model_convert/convert_from_pytorch/pytorch_api_mapping_cn.md b/docs/guides/model_convert/convert_from_pytorch/pytorch_api_mapping_cn.md index 7edbc09e798..f970ef2a6df 100644 --- a/docs/guides/model_convert/convert_from_pytorch/pytorch_api_mapping_cn.md +++ b/docs/guides/model_convert/convert_from_pytorch/pytorch_api_mapping_cn.md @@ -283,6 +283,7 @@ | 252 | [torch.frexp](https://pytorch.org/docs/1.13/generated/torch.frexp.html?highlight=frexp#torch.frexp) | [paddle.frexp](暂无对应文档) | 功能一致, torch 参数更多 , [差异对比](/~https://github.com/PaddlePaddle/docs/tree/develop/docs/guides/model_convert/convert_from_pytorch/api_difference/ops/torch.frexp.md) | | 253 | [torch.nanmean](https://pytorch.org/docs/1.13/generated/torch.nanmean.html?highlight=nanmean#torch.nanmean) | [paddle.nanmean](https://www.paddlepaddle.org.cn/documentation/docs/zh/api/paddle/nanmean_cn.html) | 功能一致, torch 参数更多 , [差异对比](/~https://github.com/PaddlePaddle/docs/tree/develop/docs/guides/model_convert/convert_from_pytorch/api_difference/ops/torch.nanmean.md) | | 254 | [torch.take_along_dim](https://pytorch.org/docs/1.13/generated/torch.take_along_dim.html?highlight=torch+take_along_dim#torch.take_along_dim) | [paddle.take_along_axis](https://www.paddlepaddle.org.cn/documentation/docs/zh/api/paddle/take_along_axis_cn.html) | 功能一致, torch 参数更多 , [差异对比](/~https://github.com/PaddlePaddle/docs/tree/develop/docs/guides/model_convert/convert_from_pytorch/api_difference/ops/torch.take_along_dim.md) | +| 254 | [torch.geqrf](https://pytorch.org/docs/stable/generated/torch.geqrf.html?highlight=geqrf#torch.geqrf) | | 功能缺失 | ***持续更新...*** From 415c56881db8c1b8dc5d3352ccaa344eeadb753a Mon Sep 17 00:00:00 2001 From: Li-fAngyU <972117977@qq.com> Date: Wed, 28 Jun 2023 10:13:23 +0800 Subject: [PATCH 2/9] =?UTF-8?q?=E5=A2=9E=E5=8A=A0=20torch.searchsorted=20?= =?UTF-8?q?=E5=8F=82=E6=95=B0=E8=AE=BE=E7=BD=AE=20sorter=20=E6=97=B6?= =?UTF-8?q?=E7=9A=84=E8=BD=AC=E5=86=99=E7=A4=BA=E4=BE=8B=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../api_difference/ops/torch.searchsorted.md | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/ops/torch.searchsorted.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/ops/torch.searchsorted.md index fa46a8ae6c1..c91b19e9f60 100644 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/ops/torch.searchsorted.md +++ b/docs/guides/model_convert/convert_from_pytorch/api_difference/ops/torch.searchsorted.md @@ -56,3 +56,14 @@ torch.searchsorted(x,y, out=output) # Paddle 写法 paddle.assign(paddle.searchsorted(x,y), output) ``` + +#### sorter: 提供 sorted_sequence 为无序 Tensor 时,相对应的升序索引 + +```python +# Pytorch 写法 +x_sort = torch.argsort(x) +torch.searchsorted(x,y, sorter =x_sort) + +# Paddle 写法 +paddle.searchsorted(x.sort(), y) +``` From c19781d57cf4cf2811fc93c0a5f0933f28cf2fc2 Mon Sep 17 00:00:00 2001 From: Li-fAngyU <972117977@qq.com> Date: Wed, 28 Jun 2023 11:35:28 +0800 Subject: [PATCH 3/9] =?UTF-8?q?=E4=BF=AE=E5=A4=8Dgather,=20searchsorted=20?= =?UTF-8?q?=E8=BD=AC=E5=86=99=E7=A4=BA=E4=BE=8B=E4=B8=AD=E7=9A=84=E9=94=99?= =?UTF-8?q?=E8=AF=AF=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../convert_from_pytorch/api_difference/ops/torch.gather.md | 2 +- .../api_difference/ops/torch.searchsorted.md | 5 ++--- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/ops/torch.gather.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/ops/torch.gather.md index 9a2cf22a7a4..4afe82ab9d8 100644 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/ops/torch.gather.md +++ b/docs/guides/model_convert/convert_from_pytorch/api_difference/ops/torch.gather.md @@ -38,5 +38,5 @@ torch.gather(t, dim = 1, index = torch.tensor([[0, 0], [1, 0]]), out = y) # Paddle 写法: t = paddle.to_tensor([[1, 2], [3, 4]]) -paddle.assign(paddle.gather(t, axis = 1, indices = [[0, 0], [1, 0]]), y) +paddle.assign(paddle.take_along_axis(t, axis = 1, indices = [[0, 0], [1, 0]]), y) ``` diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/ops/torch.searchsorted.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/ops/torch.searchsorted.md index c91b19e9f60..9e60e70fd5c 100644 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/ops/torch.searchsorted.md +++ b/docs/guides/model_convert/convert_from_pytorch/api_difference/ops/torch.searchsorted.md @@ -61,9 +61,8 @@ paddle.assign(paddle.searchsorted(x,y), output) ```python # Pytorch 写法 -x_sort = torch.argsort(x) -torch.searchsorted(x,y, sorter =x_sort) +torch.searchsorted(x,y, sorter=sorter) # Paddle 写法 -paddle.searchsorted(x.sort(), y) +paddle.searchsorted(x.take_along_axis(axis = -1, indices = sorter), y) ``` From 0e77827b3d57e7d981cb6933faa32e1f10742b5c Mon Sep 17 00:00:00 2001 From: Li-fAngyU <972117977@qq.com> Date: Wed, 28 Jun 2023 16:07:49 +0800 Subject: [PATCH 4/9] fix error. --- .../api_difference/ops/torch.cummin.md | 2 +- .../api_difference/ops/torch.vander.md | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/ops/torch.cummin.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/ops/torch.cummin.md index cd20fef1c6e..6f2b472f325 100644 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/ops/torch.cummin.md +++ b/docs/guides/model_convert/convert_from_pytorch/api_difference/ops/torch.cummin.md @@ -24,7 +24,7 @@ paddle.cummin(x, | PyTorch | PaddlePaddle | 备注 | | ------------- | ------------ | ------------------------------------------------------ | | input | x | 表示输入的 Tensor,仅参数名不一致。 | -| dim | axis | 用于指定 index 获取输入的维度, 仅参数名不一致。 | +| dim | axis | 用于指定 index 获取输入的维度, PyTorch 该参数没有默认值, Paddle 当该参数为 None 时,会将输入展开为一维变量再进行累计最小值计算。 | | - | dtype | 指定输出索引的数据格式, PyTorch 无此参数, Paddle 保持默认即可。 | | out | - | 表示输出的 Tensor, Paddle 无此参数,需要进行转写。 | diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/ops/torch.vander.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/ops/torch.vander.md index 28627821442..941c4ce98ba 100644 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/ops/torch.vander.md +++ b/docs/guides/model_convert/convert_from_pytorch/api_difference/ops/torch.vander.md @@ -1,4 +1,4 @@ -## [ 参数完全一致 ]torch.vander +## [ 仅参数名不一致 ]torch.vander ### [torch.vander](https://pytorch.org/docs/stable/generated/torch.vander.html?highlight=vander#torch.vander) @@ -12,15 +12,15 @@ torch.vander(x, ```python paddle.vander(x, - N, + n, increasing) ``` -两者功能一致,参数完全一致,具体如下: +两者功能一致,仅参数名不一致,具体如下: ### 参数映射 | PyTorch | PaddlePaddle | 备注 | | ------------- | ------------ | ------------------------------------------------------ | | x | x | 表示输入的 Tensor。 | -| N | N | 用于指定输出的列数。 | +| N | n | 用于指定输出的列数, 仅参数名大小写的区别。 | | increasing | increasing | 指定输出列的幂次顺序。如果为 True,则幂次从左到右增加。 | From d36b4d73e5b1cfcc2032c20cd7214c304c649e6e Mon Sep 17 00:00:00 2001 From: Li-fAngyU <972117977@qq.com> Date: Thu, 29 Jun 2023 17:52:27 +0800 Subject: [PATCH 5/9] fix error --- docs/api/paddle/fluid/layers/pad_cn.rst | 7 +------ .../api_difference/ops/torch.cummin.md | 2 +- 2 files changed, 2 insertions(+), 7 deletions(-) diff --git a/docs/api/paddle/fluid/layers/pad_cn.rst b/docs/api/paddle/fluid/layers/pad_cn.rst index 929199a1191..db382380c5d 100644 --- a/docs/api/paddle/fluid/layers/pad_cn.rst +++ b/docs/api/paddle/fluid/layers/pad_cn.rst @@ -48,9 +48,4 @@ pad 代码示例 :::::::::::: -.. code-block:: python - - # x 为一个秩为 2 的 Tensor - import paddle.fluid as fluid - x = fluid.data(name='data', shape=[300, 300], dtype='float32') - out = fluid.layers.pad(x=x, paddings=[0, 1, 1, 2], pad_value=0.) +COPY-FROM: paddle.nn.functional.pad diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/ops/torch.cummin.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/ops/torch.cummin.md index 6f2b472f325..4b3c9f03623 100644 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/ops/torch.cummin.md +++ b/docs/guides/model_convert/convert_from_pytorch/api_difference/ops/torch.cummin.md @@ -18,7 +18,7 @@ paddle.cummin(x, name=None) ``` -两者功能一致,仅参数名不一致,具体如下: +两者功能一致,torch 参数更多,具体如下: ### 参数映射 | PyTorch | PaddlePaddle | 备注 | From 1678dfca56282ad6818b58bf7cc9f0a8941409b7 Mon Sep 17 00:00:00 2001 From: Li-fAngyU <972117977@qq.com> Date: Thu, 29 Jun 2023 17:58:45 +0800 Subject: [PATCH 6/9] Revert "fix error" This reverts commit d36b4d73e5b1cfcc2032c20cd7214c304c649e6e. --- docs/api/paddle/fluid/layers/pad_cn.rst | 7 ++++++- .../api_difference/ops/torch.cummin.md | 2 +- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/docs/api/paddle/fluid/layers/pad_cn.rst b/docs/api/paddle/fluid/layers/pad_cn.rst index db382380c5d..929199a1191 100644 --- a/docs/api/paddle/fluid/layers/pad_cn.rst +++ b/docs/api/paddle/fluid/layers/pad_cn.rst @@ -48,4 +48,9 @@ pad 代码示例 :::::::::::: -COPY-FROM: paddle.nn.functional.pad +.. code-block:: python + + # x 为一个秩为 2 的 Tensor + import paddle.fluid as fluid + x = fluid.data(name='data', shape=[300, 300], dtype='float32') + out = fluid.layers.pad(x=x, paddings=[0, 1, 1, 2], pad_value=0.) diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/ops/torch.cummin.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/ops/torch.cummin.md index 4b3c9f03623..6f2b472f325 100644 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/ops/torch.cummin.md +++ b/docs/guides/model_convert/convert_from_pytorch/api_difference/ops/torch.cummin.md @@ -18,7 +18,7 @@ paddle.cummin(x, name=None) ``` -两者功能一致,torch 参数更多,具体如下: +两者功能一致,仅参数名不一致,具体如下: ### 参数映射 | PyTorch | PaddlePaddle | 备注 | From 393147df0370e9b4861f02871aa248bae068fb94 Mon Sep 17 00:00:00 2001 From: Li-fAngyU <972117977@qq.com> Date: Thu, 29 Jun 2023 17:59:45 +0800 Subject: [PATCH 7/9] Update torch.cummin.md --- .../convert_from_pytorch/api_difference/ops/torch.cummin.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/ops/torch.cummin.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/ops/torch.cummin.md index 6f2b472f325..4b3c9f03623 100644 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/ops/torch.cummin.md +++ b/docs/guides/model_convert/convert_from_pytorch/api_difference/ops/torch.cummin.md @@ -18,7 +18,7 @@ paddle.cummin(x, name=None) ``` -两者功能一致,仅参数名不一致,具体如下: +两者功能一致,torch 参数更多,具体如下: ### 参数映射 | PyTorch | PaddlePaddle | 备注 | From 51948977164fd42e55af8335ddd755ef832722d5 Mon Sep 17 00:00:00 2001 From: Li-fAngyU <972117977@qq.com> Date: Thu, 29 Jun 2023 20:19:46 +0800 Subject: [PATCH 8/9] update for cummin and searchsorted --- .../api_difference/ops/torch.cummin.md | 10 +++++----- .../api_difference/ops/torch.searchsorted.md | 2 +- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/ops/torch.cummin.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/ops/torch.cummin.md index 4b3c9f03623..88c9538ff73 100644 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/ops/torch.cummin.md +++ b/docs/guides/model_convert/convert_from_pytorch/api_difference/ops/torch.cummin.md @@ -23,10 +23,10 @@ paddle.cummin(x, ### 参数映射 | PyTorch | PaddlePaddle | 备注 | | ------------- | ------------ | ------------------------------------------------------ | -| input | x | 表示输入的 Tensor,仅参数名不一致。 | -| dim | axis | 用于指定 index 获取输入的维度, PyTorch 该参数没有默认值, Paddle 当该参数为 None 时,会将输入展开为一维变量再进行累计最小值计算。 | -| - | dtype | 指定输出索引的数据格式, PyTorch 无此参数, Paddle 保持默认即可。 | -| out | - | 表示输出的 Tensor, Paddle 无此参数,需要进行转写。 | +| input | x | 表示输入的 Tensor,仅参数名不一致。 | +| dim | axis | 用于指定 index 获取输入的维度,仅参数名不一致。 | +| - | dtype | 指定输出索引的数据格式,PyTorch 无此参数,Paddle 保持默认即可。 | +| out | - | 表示输出的 Tensor,Paddle 无此参数,需要进行转写。 | ### 转写示例 #### out:指定输出 @@ -36,5 +36,5 @@ paddle.cummin(x, torch.cummin(x,1, out=(values, indices)) # Paddle 写法 -paddle.assign(paddle.cummin(x,y), (values, indices)) +paddle.assign(paddle.cummin(x,1), (values, indices)) ``` diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/ops/torch.searchsorted.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/ops/torch.searchsorted.md index 9e60e70fd5c..148c00d44e1 100644 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/ops/torch.searchsorted.md +++ b/docs/guides/model_convert/convert_from_pytorch/api_difference/ops/torch.searchsorted.md @@ -34,7 +34,7 @@ paddle.searchsorted(sorted_sequence, | right | right | 表示查找对应的上边界或下边界。 | | side | - | 表示查找对应的上边界或下边界,Paddle 无此参数,需要进行转写。 | | out | - | 表示输出的 Tensor,Paddle 无此参数,需要进行转写。 | -| sorter | - | 表示 sorted_sequence 元素无序时对应的升序索引,Paddle 无此参数,一般对网络训练结果影响不大,可直接删除。 | +| sorter | - | 表示 sorted_sequence 元素无序时对应的升序索引,Paddle 无此参数,一般对网络训练结果影响不大。 | ### 转写示例 #### side:指定查找对应的上边界或下边界 From 01b5a81bd9024dc2096d29a865d9dc5bc6852841 Mon Sep 17 00:00:00 2001 From: Li-fAngyU <972117977@qq.com> Date: Wed, 5 Jul 2023 11:43:18 +0800 Subject: [PATCH 9/9] Update torch.searchsorted.md --- .../api_difference/ops/torch.searchsorted.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/ops/torch.searchsorted.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/ops/torch.searchsorted.md index 148c00d44e1..174e73ace46 100644 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/ops/torch.searchsorted.md +++ b/docs/guides/model_convert/convert_from_pytorch/api_difference/ops/torch.searchsorted.md @@ -34,7 +34,7 @@ paddle.searchsorted(sorted_sequence, | right | right | 表示查找对应的上边界或下边界。 | | side | - | 表示查找对应的上边界或下边界,Paddle 无此参数,需要进行转写。 | | out | - | 表示输出的 Tensor,Paddle 无此参数,需要进行转写。 | -| sorter | - | 表示 sorted_sequence 元素无序时对应的升序索引,Paddle 无此参数,一般对网络训练结果影响不大。 | +| sorter | - | 表示 sorted_sequence 元素无序时对应的升序索引,Paddle 无此参数,一般对网络训练结果影响不大。需要进行转写。 | ### 转写示例 #### side:指定查找对应的上边界或下边界