Skip to content

Conversation

SigureMo
Copy link
Member

@SigureMo SigureMo commented Aug 26, 2023

PR types

Others

PR changes

Docs

Description

修复一些错误的 API label,现在英文的 api label 的生成规则是 '_api_' + self.api_name.replace('.', '_'),比如 paddle.jit.to_static 对应 api_paddle_jit_to_static(前面的下划线只是 label 的语法前缀而已,因此不包含最前面的下划线),详情见

https://github.com/PaddlePaddle/docs/blob/09e2032370e74ed731f6a9bc27bfeb62e35af590/docs/api/gen_doc.py#L746C13-L746C54

而 Paddle 有很多 label 是写错的,因此校正一下,错误示例如下:

注意有很多 inplace API 没有写在 paddle.__all__ 里所以英文文档里找不到它们,所以无法预览

剩下还有很多,用正则

:ref:`api_[^gp]

即可搜出(api_guide_Nameapi_paddle_* 都是合法的因此排除),剩下的感觉可以拆一拆发个小任务 @sunzhongkai588

PCard-66962

@paddle-bot
Copy link

paddle-bot bot commented Aug 26, 2023

你的PR提交成功,感谢你对开源项目的贡献!
请关注后续CI自动化测试结果,详情请参考Paddle-CI手册
Your PR has been submitted. Thanks for your contribution!
Please wait for the result of CI firstly. See Paddle CI Manual for details.

Copy link
Contributor

@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

@SigureMo SigureMo merged commit 5d16496 into PaddlePaddle:develop Aug 30, 2023
@SigureMo SigureMo deleted the api-label/tensor-math branch August 30, 2023 05:05
BeingGod pushed a commit to BeingGod/Paddle that referenced this pull request Sep 9, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants