Skip to content

Conversation

@liyongchao911
Copy link
Contributor

@liyongchao911 liyongchao911 commented Aug 25, 2022

fix some format issue

PADDLEPADDLE_PR=45423
PADDLEPADDLE_PR : PaddlePaddle/Paddle#45423

@paddle-bot
Copy link

paddle-bot bot commented Aug 25, 2022

感谢你贡献飞桨文档,文档预览构建中,Docs-New 跑完后即可预览,预览链接:http://preview-pr-5192.paddle-docs-preview.paddlepaddle.org.cn/documentation/docs/zh/api/index_cn.html
预览工具的更多说明,请参考:[Beta]飞桨文档预览工具

Copy link
Member

@SigureMo SigureMo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

整体上没啥问题,改下小问题应该就可以了~

给定一个形为 x.shape = [1, 9, 4, 4] 的 4-D 张量
设定:upscale_factor=3
那么输出张量的形为:[1, 1, 12, 12]
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

上面那些 shape 的描述可以参考 PixelUnshuffle 改成 :math:`xxx`,

image

image

明显 PixelUnshuffle 好看很多

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

下同(nn.functional.pixel_shuffle)

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

英文也要改一下~


.. py:function:: paddle.nn.PixelShuffle(upscale_factor, data_format="NCHW", name=None)
该算子将一个形为[N, C, H, W]或是[N, H, W, C]的 Tensor 重新排列成形为 [N, C/r**2, H*r, W*r][N, H*r, W*r, C/r**2] 的 Tensor。这样做有利于实现步长(stride)为 1/r 的高效 sub-pixel(亚像素)卷积。详见 Shi 等人在 2016 年发表的论文 `Real Time Single Image and Video Super Resolution Using an Efficient Sub Pixel Convolutional Neural Network <https://arxiv.org/abs/1609.05158v2>`_ 。
该算子将一个形为 :math:`[N, C, H, W]` 或是 :math:`[N, H, W, C]` 的 Tensor 重新排列成形为 :math:`[N, C/r**2, H*r, W*r]` 或 :math:`[N, H*r, W*r, C/r**2]` 的 Tensor。这样做有利于实现步长(stride)为 :math:`1/r` 的高效 sub-pixel(亚像素)卷积。详见 Shi 等人在 2016 年发表的论文 `Real Time Single Image and Video Super Resolution Using an Efficient Sub Pixel Convolutional Neural Network <https://arxiv.org/abs/1609.05158v2>`_ 。
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

image

LaTeX 里用 a^b 表示乘方而不是 a**b,用 a \times b 或者直接不写表示乘,而不是 a*b,英文同

另外 functional 下的没改,英文同

@Ligoml
Copy link
Collaborator

Ligoml commented Aug 26, 2022

改的部分都ok,另外还有几个API的参数没加粗,一起改了吧~

image

Copy link
Member

@SigureMo SigureMo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM~~~~~

Copy link
Collaborator

@Ligoml Ligoml left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

good job!LGTM

@Ligoml Ligoml merged commit 785620c into PaddlePaddle:develop Aug 29, 2022
HermitSun pushed a commit to HermitSun/paddle-docs that referenced this pull request Aug 31, 2022
* update PixelShuffle api

* udpate format issue

* update format issue

* udpate format issue

* copy-from RReLU

Co-authored-by: Ligoml <39876205+Ligoml@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants