-
Notifications
You must be signed in to change notification settings - Fork 838
[Docathon][Add Inplace CN Doc No.44、45、46、47] #7121
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
Conversation
感谢你贡献飞桨文档,文档预览构建中,Docs-New 跑完后即可预览,预览链接:http://preview-pr-7121.paddle-docs-preview.paddlepaddle.org.cn/documentation/docs/zh/api/index_cn.html |
docs/api/paddle/Overview_cn.rst
Outdated
" :ref:`paddle.tril_ <cn_api_paddle_tril_>` ", "Inplace 版本的 tril API,对输入 x 采用 Inplace 策略" | ||
" :ref:`paddle.triu_ <cn_api_paddle_triu_>` ", "Inplace 版本的 triu API,对输入 x 采用 Inplace 策略" | ||
" :ref:`paddle.trunc_ <cn_api_paddle_trunc_>` ", "Inplace 版本的 trunc API,对输入 x 采用 Inplace 策略" |
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.
这些都是线性代数相关的,直接在 tensor 线性代数相关
下方新加一个表 tensor 线性代数相关原位(inplace)版本
,然后把这三个 API 放进来
docs/api/paddle/Overview_cn.rst
Outdated
" :ref:`paddle.tril_ <cn_api_paddle_tril_>` ", "Inplace 版本的 tril API,对输入 x 采用 Inplace 策略" | ||
" :ref:`paddle.triu_ <cn_api_paddle_triu_>` ", "Inplace 版本的 triu API,对输入 x 采用 Inplace 策略" | ||
" :ref:`paddle.trunc_ <cn_api_paddle_trunc_>` ", "Inplace 版本的 trunc API,对输入 x 采用 Inplace 策略" | ||
" :ref:`paddle.where_ <cn_api_paddle_where_>` ", "Inplace 版本的 where API,对输入 x 采用 Inplace 策略" |
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.
where_
同理,是 tensor 元素查找相关
的,也新加一个表
- 新增 tensor 元素查找相关原位(inplace)版本的 API 文档 - 新增 tensor 线性代数相关原位(inplace)版本的 API 文档 - 调整部分 API 文档的分类和顺序
- 新增 tensor 元素查找相关原位(inplace)版本的 API 文档 - 新增 tensor 线性代数相关原位(inplace)版本的 API 文档 - 调整部分 API 文档的分类和顺序
This reverts commit ec2e674.
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, 修复一下 CI 检查中的 codestyle 问题,用 pre-commit 可以自动修复
docs/api/paddle/Overview_cn.rst
Outdated
@@ -211,7 +213,6 @@ tensor 数学操作原位(inplace)版本 | |||
" :ref:`paddle.gammainc_ <cn_api_paddle_gammainc_>` ", "Inplace 版本的 gammainc API,对输入 x 采用 Inplace 策略" | |||
" :ref:`paddle.gammaln_ <cn_api_paddle_gammaln_>` ", "Inplace 版本的 gammaln API,对输入 x 采用 Inplace 策略" | |||
" :ref:`paddle.gcd_ <cn_api_paddle_gcd_>` ", "Inplace 版本的 gcd API,对输入 x 采用 Inplace 策略" | |||
" :ref:`paddle.multiply_ <cn_api_paddle_multiply_>` ", "Inplace 版本的 multiply API,对输入 x 采用 Inplace 策略" |
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.
为什么要删除multiply_ ?下同。
是不是merge develop的时候操作错误。
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.
好像是合并错误了,我重新提交一下。
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.
不如重新开一个PR,也可以。
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.
好的
新增了tril__cn.rst、triu__cn.rst、trunc__cn.rst、where__cn.rst中文文档,在Overview_cn.rst中新增tril_、triu_、trunc_、where_说明。
issue: #7090
英文文档链接:
https://www.paddlepaddle.org.cn/documentation/docs/en/develop/api/paddle/tril__en.html
https://www.paddlepaddle.org.cn/documentation/docs/en/develop/api/paddle/triu__en.html
https://www.paddlepaddle.org.cn/documentation/docs/en/develop/api/paddle/trunc__en.html
https://www.paddlepaddle.org.cn/documentation/docs/en/develop/api/paddle/where__en.html
@sunzhongkai588