Skip to content

Conversation

@Liyulingyue
Copy link
Contributor

@Liyulingyue Liyulingyue commented Aug 7, 2022

  1. modify the description in fft
  2. modify the return type of Subset.

PaddlePaddle/Paddle#44948
PADDLEPADDLE_PR=44948

@paddle-bot
Copy link

paddle-bot bot commented Aug 7, 2022

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

.. py:function:: paddle.fft.rfft(x, n=None, axis=-1, norm="backward", name=None)
通过快速傅里叶变换(FFT)算法计算一维实数傅里叶变换。
通过快速傅里叶变换(FFT)算法计算一维实数傅里叶变换。、
Copy link
Collaborator

Choose a reason for hiding this comment

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

image

迷惑行为

当输入是实数时,输出是厄米特对称的。由于该函数不计算负频率项,因此输出的变换轴长度为 ``n//2 + 1`` 。


参数
Copy link
Collaborator

Choose a reason for hiding this comment

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

image

一些多余的空格


.. py:function:: paddle.fft.rfftfreq(n, d=1.0, dtype=None, name=None)
返回离散傅里叶变换的频率窗口(frequency bins)中心,以 "循环/采样间隔" 为单位。例如,采样间
Copy link
Collaborator

Choose a reason for hiding this comment

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

image

一些多余的空格

@Ligoml
Copy link
Collaborator

Ligoml commented Aug 25, 2022

公式写作有误,需要按照LaTeX的格式去写

Comment on lines 12 to 16
.. math::
H_out &= output_size[0]
W_out &= output_size[1]
C_out &= C_in / kernel\_sizes[0] / kernel\_sizes[1]
H_out &= output_size[0]
W_out &= output_size[1]
C_out &= C_in / kernel\_sizes[0] / kernel\_sizes[1]
Copy link
Member

Choose a reason for hiding this comment

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

公式写作有误,需要按照LaTeX的格式去写

.. math::

    H_{out} &= \text{output_size[0]} \\
    W_{out} &= \text{output_size[1]} \\
    C_{out} &= C_{in} / \text{kernel_sizes[0]} / \text{kernel_sizes[1]}

试试这个,本地 Sphinx 预览效果如下:

image

@SigureMo
Copy link
Member

SigureMo commented Aug 25, 2022

还有一堆文件代码风格检查不过,本地手动跑下 pre-commit 吧~

pip install pre-commit
pre-commit run --files <file_path_1>
pre-commit run --files <file_path_2>
...
pre-commit run --files <file_path_18> # doge,慢慢修吧

@Liyulingyue
Copy link
Contributor Author

还有一堆文件代码风格检查不过,本地手动跑下 pre-commit 吧~

pip install pre-commit
pre-commit run --files <file_path_1>
pre-commit run --files <file_path_2>
...
pre-commit run --files <file_path_18> # doge,慢慢修吧

你是魔鬼吗

@Ligoml
Copy link
Collaborator

Ligoml commented Aug 25, 2022

还有一堆文件代码风格检查不过,本地手动跑下 pre-commit 吧~

pip install pre-commit
pre-commit run --files <file_path_1>
pre-commit run --files <file_path_2>
...
pre-commit run --files <file_path_18> # doge,慢慢修吧

你是魔鬼吗

我看了一下,挂掉的都是fluid下的API文档,其实不改也行,最好是改一下

@SigureMo
Copy link
Member

我看了一下,挂掉的都是fluid下的API文档,其实不改也行,最好是改一下

@Liyulingyue 加油!

@TCChenlong TCChenlong merged commit e2d630f into PaddlePaddle:develop Aug 26, 2022
HermitSun pushed a commit to HermitSun/paddle-docs that referenced this pull request Aug 31, 2022
* Update irfftn_cn.rst

* Update irfftn_cn.rst

* Update rfft_cn.rst

* Update rfftfreq_cn.rst

* Update rfftfreq_cn.rst

* Update rfftfreq_cn.rst

* Update random_split_cn.rst

* Update rfft_cn.rst

* Update rfft_cn.rst

* Update rfftfreq_cn.rst

* Update rfft_cn.rst

* Update Embedding_cn.rst

* Update embedding_cn.rst

* Update embedding_cn.rst

* Update embedding_cn.rst

* Update embedding_cn.rst

* Update Fold_cn.rst

* Update Fold_cn.rst

* Update fold_cn.rst

* Update GELU_cn.rst

* Update gelu_cn.rst

* Update hardshrink_cn.rst

* delete the '该OP'

* Update irfftn_cn.rst

* Update fft_cn.rst

* Update irfftn_cn.rst

* Update hfftn_cn.rst

* Update Subset_cn.rst

* Update one_hot_cn.rst

* Update adaptive_pool2d_cn.rst

* Update adaptive_pool3d_cn.rst

* Update adaptive_pool3d_cn.rst

* Update DetectionMAP_cn.rst

* Update NumpyArrayInitializer_cn.rst

* Update data_cn.rst

* Update save_params_cn.rst

* Update DetectionMAP_cn.rst

* Update data_cn.rst

* Update save_persistables_cn.rst

* Update data_cn.rst

* Update data_cn.rst

* Update Fold_cn.rst

* Update fold_cn.rst

* Update data_cn.rst

* Update data_cn.rst

* Update fold_cn.rst

* Update Fold_cn.rst

* Update Fold_cn.rst

* Update fold_cn.rst

* Update Fold_cn.rst

* Update Fold_cn.rst

* Update Fold_cn.rst

* Update Fold_cn.rst

* Update Fold_cn.rst

* Update fold_cn.rst

Co-authored-by: Ligoml <39876205+Ligoml@users.noreply.github.com>
@Liyulingyue Liyulingyue deleted the 8.7 branch September 3, 2022 07:05
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.

4 participants