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

[xdoctest] reformat example code with google style in No. 201 #56472

Merged
merged 7 commits into from
Aug 30, 2023

Conversation

Liyulingyue
Copy link
Contributor

PR types

Others

PR changes

Others

Description

#55629

@paddle-bot
Copy link

paddle-bot bot commented Aug 20, 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 contributor External developers status: proposed labels Aug 20, 2023
@Liyulingyue
Copy link
Contributor Author

@SigureMo 发起Review申请🐕

# [[0.32043904, 0.18164253, 0.27810261],
# [0.50226176, 0.24512935, 0.39881429],
# [0.51476848, 0.23367381, 0.39229113]]])
>>> # doctest: +SKIP('The paddle.seed cannot provide fixed results.')
Copy link
Member

Choose a reason for hiding this comment

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

可以固定

[[[0.50882483, 0.56067896],
[0.84598064, 0.36310029],
[0.55289471, 0.33273944]],

Copy link
Member

Choose a reason for hiding this comment

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

不要空行

python/paddle/tensor/einsum.py Outdated Show resolved Hide resolved
python/paddle/tensor/einsum.py Outdated Show resolved Hide resolved
python/paddle/tensor/einsum.py Outdated Show resolved Hide resolved
python/paddle/tensor/einsum.py Outdated Show resolved Hide resolved
>>> y = paddle.rand([5])

>>> # sum
>>> # doctest: +SKIP('The paddle.seed cannot provide fixed results.')
Copy link
Contributor

Choose a reason for hiding this comment

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

这里结果不确定?我在 aistudio 和本地的结果都是这个,你那边是多少?

Comment on lines 969 to 970
Tensor(shape=[], dtype=float32, place=Place(cpu), stop_gradient=True,
1.81225157)
Copy link
Contributor

Choose a reason for hiding this comment

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

这是抄的上面的?

@luotao1 luotao1 added the HappyOpenSource Pro 进阶版快乐开源活动,更具挑战性的任务 label Aug 21, 2023
@paddle-ci-bot
Copy link

paddle-ci-bot bot commented Aug 28, 2023

Sorry to inform you that 4d62849's CIs have passed for more than 7 days. To prevent PR conflicts, you need to re-run all CIs manually.

Copy link
Contributor

@megemini megemini 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 5f3c7ba into PaddlePaddle:develop Aug 30, 2023
BeingGod pushed a commit to BeingGod/Paddle that referenced this pull request Sep 9, 2023
…Paddle#56472)

* xdoc

* Update python/paddle/tensor/einsum.py

* Update einsum.py

* Apply suggestions from code review

* Update einsum.py

* Apply suggestions from code review
@Liyulingyue Liyulingyue deleted the xdocnew_1 branch September 23, 2023 16:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
contributor External developers HappyOpenSource Pro 进阶版快乐开源活动,更具挑战性的任务
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants