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

Optimize doc of dynamic-to-static debugging and error_handling #2702

Merged
merged 5 commits into from
Sep 28, 2020

Conversation

liym27
Copy link
Contributor

@liym27 liym27 commented Sep 27, 2020

  1. 在教程中同步更新 set_verbosity,set_code_level 接口的also_to_stdout参数的使用,以及优化后的 log 信息。(代码更新可见Paddle PR27285
  2. 在教程中同步补充 控制报错信息栈的2个环境变量(代码 Paddle PR27225
    • TRANSLATOR_DISABLE_NEW_ERROR: 默认为0。为1时可关闭动转静报错模块,仅使用Python原生报错
    • TRANSLATOR_SIMPLIFY_NEW_ERROR: 默认为1。为0时,可看到未被简化的报错。
  3. 根据2.0 RC 接口情况,更新代码中的接口使用
    • 默认开启动态图:删掉paddle.disable_static()
    • 转化后的代码更新到2.0rc (参考Paddle PR27430,和PR27650)

中文

image

image

英文

image

image

@paddle-bot-old
Copy link

Thanks for your contribution!

@paddle-bot-old
Copy link

paddle-bot-old bot commented Sep 27, 2020

✅ This PR's description meets the template requirements!
Please wait for other CI results.

Copy link
Collaborator

@Aurelius84 Aurelius84 left a comment

Choose a reason for hiding this comment

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

LGTM for the rest

doc/paddle/guides/dygraph_to_static/error_handling_en.md Outdated Show resolved Hide resolved
Copy link
Member

@zhhsplendid zhhsplendid left a comment

Choose a reason for hiding this comment

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

LGTM

@liym27 liym27 merged commit 004aa43 into PaddlePaddle:develop Sep 28, 2020
RichardWooSJTU pushed a commit to RichardWooSJTU/docs that referenced this pull request Apr 8, 2022
RichardWooSJTU pushed a commit to RichardWooSJTU/docs that referenced this pull request Apr 8, 2022
Proposed fix for 'Model predict with forward will fail if PIL image does not have filename attribute' PaddlePaddle#2702
RichardWooSJTU pushed a commit to RichardWooSJTU/docs that referenced this pull request Apr 8, 2022
Fix 2 for 'Model predict with forward will fail if PIL image does not have filename attribute' PaddlePaddle#2702
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.

3 participants