From 3c5fc5bce72ad9913e2537cffb09880aec455e70 Mon Sep 17 00:00:00 2001 From: EgoistSA <3046205147@qq.com> Date: Fri, 26 Jul 2024 14:57:22 +0800 Subject: [PATCH 1/8] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E5=8F=82=E6=95=B0?= =?UTF-8?q?=E5=90=8D=E4=B8=8D=E7=BB=9F=E4=B8=80=E7=9A=84=E9=94=99=E8=AF=AF?= =?UTF-8?q?=EF=BC=8C=E5=A6=82kernel=5Fsize->kernel=5Fsizes,dilation->dilat?= =?UTF-8?q?ions?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../api_difference/nn/torch.nn.Unfold.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/nn/torch.nn.Unfold.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/nn/torch.nn.Unfold.md index 77713a9fe4f..c23ad69a298 100644 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/nn/torch.nn.Unfold.md +++ b/docs/guides/model_convert/convert_from_pytorch/api_difference/nn/torch.nn.Unfold.md @@ -11,10 +11,10 @@ torch.nn.Unfold(kernel_size, ### [paddle.nn.Unfold](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/nn/Unfold_cn.html#unfold) ```python -paddle.nn.Unfold(kernel_size=[3, 3], +paddle.nn.Unfold(kernel_sizes=[3, 3], strides=1, paddings=1, - dilation=1, + dilations=1, name=None) ``` @@ -35,5 +35,5 @@ paddle.nn.Unfold(kernel_size=[3, 3], unfold = nn.Unfold(kernel_size=(2, 3)) # Paddle 写法 -unfold = nn.Unfold(kernel_size=[2, 3]) +unfold = nn.Unfold(kernel_sizes=[2, 3]) ``` From 093fec4bd485e8de8c8cb64975f188fa923a458f Mon Sep 17 00:00:00 2001 From: EgoistSA <3046205147@qq.com> Date: Mon, 5 Aug 2024 16:12:59 +0800 Subject: [PATCH 2/8] =?UTF-8?q?=E4=B8=BAslice=E6=96=87=E6=A1=A3=E6=B7=BB?= =?UTF-8?q?=E5=8A=A0=E5=9B=BE=E4=BE=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- docs/api/paddle/slice_cn.rst | 1 + docs/images/api_legend/slice.png | Bin 0 -> 18880 bytes 2 files changed, 1 insertion(+) create mode 100644 docs/images/api_legend/slice.png diff --git a/docs/api/paddle/slice_cn.rst b/docs/api/paddle/slice_cn.rst index 79771c1bba5..348e6d3f450 100755 --- a/docs/api/paddle/slice_cn.rst +++ b/docs/api/paddle/slice_cn.rst @@ -28,6 +28,7 @@ slice ends=[-1,1000] # 此处-1 表示第 0 维的反向第 0 个位置,索引值是 1。 则: result=[[2,3,4],] # 即 data[0:1, 1:4] + 下图展示了第一个例子中的情形——一个形状为[2,4,6]的三维张量通过 reshape 操作转变为形状为[6,8]的二维张量,同时保持了张量中元素的顺序和值不变。通过比较,可以清晰地看到张量形状变化前后各元素的对应关系。 参数 :::::::::::: diff --git a/docs/images/api_legend/slice.png b/docs/images/api_legend/slice.png new file mode 100644 index 0000000000000000000000000000000000000000..9bdc47ba23ae206891a572ed19e45a1fbb7ba1eb GIT binary patch literal 18880 zcmcJ%2T+x1mo1FiXd7wUECL2ZKmi2-L4t~aU?9vqrDk_@m9l5d6 z0i5PmR=!0=MOt^iQ4hDImGA>8NP_?=7-b7^Ih3g)+xJR;^Uf9cX+`T6-bIRnz~beBjkZQ8{e@kYdT@F9)R=P63_gb*{9 zo7#KBlB!+U@5Gg`AE8cK#cq3=D>;f1@V)(5$5VIrhA>gL$qt*Yfr04I>c-Sg#|7hO zdry5&GS8p=?q)ZV^P^{Q&`xclP3q#sM@bqvHyjEK8dwaK`Lhcd4hEFRRMrXAv6xwoK!e zX{Zmw)1c`QChW(L5k@?=nZ>Y#6I*LQGX4FXjFQ`nR&Q0(alO z;x>%hqkT^y&w5y~`01`RO<8mE)TcXH4)58sCnv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p@N}5bt12G+ktCCG4 zTOLvdD{!(OpCSY#;_V;B5REd5KkV8nm~Y85B^FhA`IjenyQ=q|yFW&{Igs;kbwu6d ztvmojo(kk7&J12m=%af}r|^(-q2Bn*NJh2o9ru5wcH&1s2mj+f`;W`(zxtL%27X7i VFn1P)yW~40L}f1~UAXq(e*wFc%WVJv literal 0 HcmV?d00001 From c1a4beae1e452575bb144f10d6340abe1c1bccb3 Mon Sep 17 00:00:00 2001 From: EgoistSA <109026320+EgoistSA@users.noreply.github.com> Date: Mon, 5 Aug 2024 16:29:59 +0800 Subject: [PATCH 3/8] =?UTF-8?q?=E4=B8=BAslice=E6=96=87=E6=A1=A3=E6=B7=BB?= =?UTF-8?q?=E5=8A=A0=E5=9B=BE=E4=BE=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- docs/api/paddle/slice_cn.rst | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/docs/api/paddle/slice_cn.rst b/docs/api/paddle/slice_cn.rst index 348e6d3f450..4a1a615587e 100755 --- a/docs/api/paddle/slice_cn.rst +++ b/docs/api/paddle/slice_cn.rst @@ -28,7 +28,9 @@ slice ends=[-1,1000] # 此处-1 表示第 0 维的反向第 0 个位置,索引值是 1。 则: result=[[2,3,4],] # 即 data[0:1, 1:4] - 下图展示了第一个例子中的情形——一个形状为[2,4,6]的三维张量通过 reshape 操作转变为形状为[6,8]的二维张量,同时保持了张量中元素的顺序和值不变。通过比较,可以清晰地看到张量形状变化前后各元素的对应关系。 +下图展示了示例 1 中的情形——一个形状为[2, 4]的二维张量通过切片操作转变为形状为[1, 3]的二维张量。切片操作指定了在第 0 轴和第 1 轴上的起始和结束索引,可以清晰地看到切片操作前后张量中各元素的对应关系。 +.. image:: ../../images/api_legend/slice.png + :alt: 图例 参数 :::::::::::: From d7db99e2e86b0d7520e9476975f732016a4ae670 Mon Sep 17 00:00:00 2001 From: EgoistSA <109026320+EgoistSA@users.noreply.github.com> Date: Mon, 5 Aug 2024 16:34:53 +0800 Subject: [PATCH 4/8] =?UTF-8?q?=E4=B8=BAslice=E6=96=87=E6=A1=A3=E6=B7=BB?= =?UTF-8?q?=E5=8A=A0=E5=9B=BE=E4=BE=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- docs/api/paddle/slice_cn.rst | 2 ++ 1 file changed, 2 insertions(+) diff --git a/docs/api/paddle/slice_cn.rst b/docs/api/paddle/slice_cn.rst index 4a1a615587e..1943560c33e 100755 --- a/docs/api/paddle/slice_cn.rst +++ b/docs/api/paddle/slice_cn.rst @@ -28,7 +28,9 @@ slice ends=[-1,1000] # 此处-1 表示第 0 维的反向第 0 个位置,索引值是 1。 则: result=[[2,3,4],] # 即 data[0:1, 1:4] + 下图展示了示例 1 中的情形——一个形状为[2, 4]的二维张量通过切片操作转变为形状为[1, 3]的二维张量。切片操作指定了在第 0 轴和第 1 轴上的起始和结束索引,可以清晰地看到切片操作前后张量中各元素的对应关系。 + .. image:: ../../images/api_legend/slice.png :alt: 图例 From 2c2813a66754d3a34ff416b3244c778aca8812e4 Mon Sep 17 00:00:00 2001 From: zachary sun <70642955+sunzhongkai588@users.noreply.github.com> Date: Thu, 8 Aug 2024 17:29:32 +0800 Subject: [PATCH 5/8] Update docs/api/paddle/slice_cn.rst --- docs/api/paddle/slice_cn.rst | 1 + 1 file changed, 1 insertion(+) diff --git a/docs/api/paddle/slice_cn.rst b/docs/api/paddle/slice_cn.rst index 1943560c33e..45b3d837f8a 100755 --- a/docs/api/paddle/slice_cn.rst +++ b/docs/api/paddle/slice_cn.rst @@ -32,6 +32,7 @@ slice 下图展示了示例 1 中的情形——一个形状为[2, 4]的二维张量通过切片操作转变为形状为[1, 3]的二维张量。切片操作指定了在第 0 轴和第 1 轴上的起始和结束索引,可以清晰地看到切片操作前后张量中各元素的对应关系。 .. image:: ../../images/api_legend/slice.png + :width: 600 :alt: 图例 参数 From 6a6722f30565a2abf762f45951c56e855b60c40b Mon Sep 17 00:00:00 2001 From: EgoistSA <3046205147@qq.com> Date: Fri, 9 Aug 2024 10:19:32 +0800 Subject: [PATCH 6/8] =?UTF-8?q?=E6=9B=B4=E6=96=B0slice=E6=96=87=E6=A1=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- docs/api/paddle/slice_cn.rst | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/docs/api/paddle/slice_cn.rst b/docs/api/paddle/slice_cn.rst index 348e6d3f450..2f6b766a95a 100755 --- a/docs/api/paddle/slice_cn.rst +++ b/docs/api/paddle/slice_cn.rst @@ -28,7 +28,12 @@ slice ends=[-1,1000] # 此处-1 表示第 0 维的反向第 0 个位置,索引值是 1。 则: result=[[2,3,4],] # 即 data[0:1, 1:4] - 下图展示了第一个例子中的情形——一个形状为[2,4,6]的三维张量通过 reshape 操作转变为形状为[6,8]的二维张量,同时保持了张量中元素的顺序和值不变。通过比较,可以清晰地看到张量形状变化前后各元素的对应关系。 + + 下图展示了示例 1 中的情形——一个形状为[2, 4]的二维张量通过切片操作转变为形状为[1, 3]的二维张量。切片操作指定了在第 0 轴和第 1 轴上的起始和结束索引,可以清晰地看到切片操作前后张量中各元素的对应关系。 + +.. image:: ../../images/api_legend/slice.png + :width: 600 + :alt: 图例 参数 :::::::::::: From d9ed5050f61614586b9efbc49724bde9149b0f55 Mon Sep 17 00:00:00 2001 From: EgoistSA <3046205147@qq.com> Date: Mon, 12 Aug 2024 17:41:02 +0800 Subject: [PATCH 7/8] =?UTF-8?q?=E6=9B=B4=E6=96=B0slice=E6=96=87=E6=A1=A3?= =?UTF-8?q?=E5=9B=BE=E4=BE=8B=E5=A4=A7=E5=B0=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- docs/api/paddle/slice_cn.rst | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/docs/api/paddle/slice_cn.rst b/docs/api/paddle/slice_cn.rst index e56bcf2ea17..cc876f6246c 100755 --- a/docs/api/paddle/slice_cn.rst +++ b/docs/api/paddle/slice_cn.rst @@ -32,14 +32,11 @@ slice 下图展示了示例 1 中的情形——一个形状为[2, 4]的二维张量通过切片操作转变为形状为[1, 3]的二维张量。切片操作指定了在第 0 轴和第 1 轴上的起始和结束索引,可以清晰地看到切片操作前后张量中各元素的对应关系。 .. image:: ../../images/api_legend/slice.png - :width: 600 + :width: 500 :alt: 图例 下图展示了示例 1 中的情形——一个形状为[2, 4]的二维张量通过切片操作转变为形状为[1, 3]的二维张量。切片操作指定了在第 0 轴和第 1 轴上的起始和结束索引,可以清晰地看到切片操作前后张量中各元素的对应关系。 -.. image:: ../../images/api_legend/slice.png - :width: 600 - :alt: 图例 参数 :::::::::::: From 40ae61cd239423f221944b8901a7ce265edc69a2 Mon Sep 17 00:00:00 2001 From: EgoistSA <3046205147@qq.com> Date: Mon, 12 Aug 2024 17:45:10 +0800 Subject: [PATCH 8/8] =?UTF-8?q?=E6=9B=B4=E6=96=B0slice=E6=96=87=E6=A1=A3?= =?UTF-8?q?=E5=9B=BE=E4=BE=8B=E5=A4=A7=E5=B0=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- docs/api/paddle/slice_cn.rst | 2 -- 1 file changed, 2 deletions(-) diff --git a/docs/api/paddle/slice_cn.rst b/docs/api/paddle/slice_cn.rst index cc876f6246c..a7f0c966819 100755 --- a/docs/api/paddle/slice_cn.rst +++ b/docs/api/paddle/slice_cn.rst @@ -35,8 +35,6 @@ slice :width: 500 :alt: 图例 - 下图展示了示例 1 中的情形——一个形状为[2, 4]的二维张量通过切片操作转变为形状为[1, 3]的二维张量。切片操作指定了在第 0 轴和第 1 轴上的起始和结束索引,可以清晰地看到切片操作前后张量中各元素的对应关系。 - 参数 ::::::::::::