Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

【PaddlePaddle Hackathon 4 No.23】新增 API vander #5681

Merged
merged 10 commits into from
Mar 31, 2023

Conversation

Li-fAngyU
Copy link
Contributor

@Li-fAngyU Li-fAngyU commented Mar 6, 2023

增加paddle.vander的中文文档。

RFC的PR链接:PaddlePaddle/community#386
该API的实现PR为:PaddlePaddle/Paddle#51048
PADDLEPADDLE_PR=51048

@paddle-bot
Copy link

paddle-bot bot commented Mar 6, 2023

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

::::::::::
- **x** (Tensor) - 输入的一维 Tensor,支持的数据类型:int32、int64、float32、float64、complex64、complex128。
- **n** (int) - 输出中的列数。如果未指定 n,则返回一个方阵(n = len(x))。
- **increasing** (bool) - 列的幂次顺序。如果为 True,则幂次从左到右增加,如果为 False(默认值),则幂次顺序相反。
Copy link
Collaborator

Choose a reason for hiding this comment

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

(bool)中加个可选吧

参数
::::::::::
- **x** (Tensor) - 输入的一维 Tensor,支持的数据类型:int32、int64、float32、float64、complex64、complex128。
- **n** (int) - 输出中的列数。如果未指定 n,则返回一个方阵(n = len(x))。
Copy link
Collaborator

Choose a reason for hiding this comment

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

(int)里加个可选吧

-------------------------------

.. py:function:: paddle.vander(x, n=None, increasing=False, name=None)
生成范德蒙德矩阵。
Copy link
Collaborator

Choose a reason for hiding this comment

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

和英文文档内容保持一致吧,其他地方也注意保持一致

@@ -0,0 +1,23 @@
.. _cn_api_tensor_vander:
Copy link
Collaborator

Choose a reason for hiding this comment

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

上文引用vander_cn.rst时所用的标签都是 api_paddle_vander ,这里标签应该一致,即换成 .. _cn_api_paddle_vander:

@Li-fAngyU
Copy link
Contributor Author

Li-fAngyU commented Mar 29, 2023

感谢指出问题,已修正!

Copy link
Collaborator

@sunzhongkai588 sunzhongkai588 left a comment

Choose a reason for hiding this comment

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

LGTM

@luotao1 luotao1 merged commit 3e86bbc into PaddlePaddle:develop Mar 31, 2023
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