-
Notifications
You must be signed in to change notification settings - Fork 5.6k
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
Conversation
你的PR提交成功,感谢你对开源项目的贡献! |
@SigureMo 发起Review申请🐕 |
python/paddle/tensor/einsum.py
Outdated
# [[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.') |
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.
可以固定
python/paddle/tensor/einsum.py
Outdated
[[[0.50882483, 0.56067896], | ||
[0.84598064, 0.36310029], | ||
[0.55289471, 0.33273944]], | ||
|
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.
不要空行
python/paddle/tensor/einsum.py
Outdated
>>> y = paddle.rand([5]) | ||
|
||
>>> # sum | ||
>>> # doctest: +SKIP('The paddle.seed cannot provide fixed results.') |
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.
这里结果不确定?我在 aistudio 和本地的结果都是这个,你那边是多少?
python/paddle/tensor/einsum.py
Outdated
Tensor(shape=[], dtype=float32, place=Place(cpu), stop_gradient=True, | ||
1.81225157) |
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.
这是抄的上面的?
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. |
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#56472) * xdoc * Update python/paddle/tensor/einsum.py * Update einsum.py * Apply suggestions from code review * Update einsum.py * Apply suggestions from code review
PR types
Others
PR changes
Others
Description
#55629