-
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][task 365-370] reformat example code with google style in paddle/incubate/nn/functional/
,paddle/incubate/optimizer/
#58178
[xdoctest][task 365-370] reformat example code with google style in paddle/incubate/nn/functional/
,paddle/incubate/optimizer/
#58178
Conversation
你的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.
LGTMeow 🐾
>>> optimizer = paddle.incubate.optimizer.LarsMomentumOptimizer(learning_rate=0.001, momentum=0.9) | ||
>>> optimizer.minimize(out) | ||
|
||
>>> exe = paddle.static.Executor(base.CPUPlace()) |
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.
base.CPUPlace() -> paddle.CPUPlace()
Sorry to inform you that c2b857d's CIs have passed for more than 7 days. To prevent PR conflicts, you need to re-run all CIs manually. |
… ooooo/xdoctest365_370
…`paddle/incubate/nn/functional/` ,`paddle/incubate/optimizer/` (PaddlePaddle#58178) * [Doctest]fix No.365-370, test=docs_preview * Apply suggestions from code review * Update python/paddle/incubate/optimizer/lars_momentum.py --------- Co-authored-by: Nyakku Shigure <[email protected]>
…`paddle/incubate/nn/functional/` ,`paddle/incubate/optimizer/` (PaddlePaddle#58178) * [Doctest]fix No.365-370, test=docs_preview * Apply suggestions from code review * Update python/paddle/incubate/optimizer/lars_momentum.py --------- Co-authored-by: Nyakku Shigure <[email protected]>
PR types
Others
PR changes
Others
Description
修改如下文件的示例代码,使其通过
xdoctest
检查:python/paddle/incubate/nn/functional/fused_layer_norm.py
python/paddle/incubate/nn/functional/masked_multihead_attention.py
python/paddle/incubate/nn/functional/variable_length_memory_efficient_attention.py
python/paddle/incubate/optimizer/gradient_merge.py
python/paddle/incubate/optimizer/lars_momentum.py
预览:
Related links
@sunzhongkai588 @SigureMo @megemini