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

[Docathon][Fix System Message No.12] test to fix #59445

Merged
merged 6 commits into from
Dec 6, 2023

Conversation

ooooo-create
Copy link
Contributor

@ooooo-create ooooo-create commented Nov 28, 2023

PR types

Others

PR changes

Others

Description

link #58237
try to fix
my dear @sunzhongkai588

Copy link

paddle-bot bot commented Nov 28, 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.

@paddle-bot paddle-bot bot added the contributor External developers label Nov 28, 2023
@luotao1 luotao1 added the HappyOpenSource 快乐开源活动issue与PR label Nov 29, 2023
@sunzhongkai588
Copy link
Contributor

Paddle.Tensor 的内容是不是直接把各个 API 的 docstring 粘过来的?

现在来看应该不是引用写法的问题,因为 @ooooo-create 修改了之后并没有减少 Paddle.Tensor 下的 system message数量。

再看看 system message 的报错,意思是用了重复的引用名称 Introduction to Tensor,难道是因为不能在一个页面重复使用同一个标签名? 🤔
image

我查了下,2.4分支就没有这种问题,但2.4 用的是 ref 形式引用的。(参考多种引用方式

``paddle.pow`` supports broadcasting. If you want know more about broadcasting, please refer to :ref:`user_guide_broadcasting` .

怎么解决呀 @SigureMo 想不通

@sunzhongkai588
Copy link
Contributor

再看看 system message 的报错,意思是用了重复的引用名称 Introduction to Tensor,难道是因为不能在一个页面重复使用同一个标签名? 🤔

牛哇,system message 问题解决了,看来可以在一个 html 里面用重复的标签,但标签不能有多个引用⚠️ @ooooo-create @SigureMo

然后还残留一个system message,如下
image

Examples:
.. code-block:: python
:name: code-example1
>>> import paddle
>>> # x is a 2-D Tensor:
>>> x = paddle.to_tensor([[float('nan'), 0.3, 0.5, 0.9],
... [0.1, 0.2, float('-nan'), 0.7]])

是一个 html 里面不能出现重复的 :name:?不过这段代码把 code-example1 删掉好像也没啥影响,因为就一段代码。记得中文 copy-from 也同步更改下

@sunzhongkai588
Copy link
Contributor

就差 diagflat 的 code-block 的 name 需要改了!!!可以把 name 分别改成 diagflat-example-1diagflat-example-2
image
image
@ooooo-create

@ooooo-create
Copy link
Contributor Author

就差 diagflat 的 code-block 的 name 需要改了!!!可以把 name 分别改成 diagflat-example-1diagflat-example-2
image
image
@ooooo-create

要不留给另一个 pr 叭,因为 13 的 variable 和 12 的 tensor 大多是一样的

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,其余的在 #59725

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
contributor External developers HappyOpenSource 快乐开源活动issue与PR
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants