-
Notifications
You must be signed in to change notification settings - Fork 766
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
Conversation
感谢你贡献飞桨文档,文档预览构建中,Docs-New 跑完后即可预览,预览链接:http://preview-pr-5681.paddle-docs-preview.paddlepaddle.org.cn/documentation/docs/zh/api/index_cn.html |
docs/api/paddle/vander_cn.rst
Outdated
:::::::::: | ||
- **x** (Tensor) - 输入的一维 Tensor,支持的数据类型:int32、int64、float32、float64、complex64、complex128。 | ||
- **n** (int) - 输出中的列数。如果未指定 n,则返回一个方阵(n = len(x))。 | ||
- **increasing** (bool) - 列的幂次顺序。如果为 True,则幂次从左到右增加,如果为 False(默认值),则幂次顺序相反。 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
(bool)中加个可选吧
docs/api/paddle/vander_cn.rst
Outdated
参数 | ||
:::::::::: | ||
- **x** (Tensor) - 输入的一维 Tensor,支持的数据类型:int32、int64、float32、float64、complex64、complex128。 | ||
- **n** (int) - 输出中的列数。如果未指定 n,则返回一个方阵(n = len(x))。 |
There was a problem hiding this comment.
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) | ||
生成范德蒙德矩阵。 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
和英文文档内容保持一致吧,其他地方也注意保持一致
docs/api/paddle/vander_cn.rst
Outdated
@@ -0,0 +1,23 @@ | |||
.. _cn_api_tensor_vander: |
There was a problem hiding this comment.
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:
感谢指出问题,已修正! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
增加paddle.vander的中文文档。
RFC的PR链接:PaddlePaddle/community#386
该API的实现PR为:PaddlePaddle/Paddle#51048
PADDLEPADDLE_PR=51048