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

modify dy2stat error message in runtime and format error message #35365

Merged
merged 1 commit into from
Sep 3, 2021

Conversation

0x45f
Copy link
Contributor

@0x45f 0x45f commented Sep 1, 2021

PR types

Others

PR changes

Others

Describe

modify dy2stat error message in runtime and format error message
1.对动转静运行期报错信息进行了修改,主要修改了红框内的报错信息。上图是修改之前的报错信息,下图为修改之后的报错信息:将最后报错的用户代码进行了扩展,展示了前后总共5行的相关代码,加入了提示HERE提示词提示具体出错位置;同时将报错栈的框架层信息进行了隐藏。
2.将所显示关联代码的格式进行调整,对展示代码顶部、底部存在空行以及代码中间存在空行的情况进行了修改。
image-20210901115941397
image-20210901155433634

@paddle-bot-old
Copy link

paddle-bot-old bot commented Sep 1, 2021

Thanks for your contribution!
Please wait for the result of CI firstly. See Paddle CI Manual for details.

Copy link
Contributor

@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

@Aurelius84 Aurelius84 merged commit a6cc567 into PaddlePaddle:develop Sep 3, 2021
@0x45f 0x45f deleted the dy2stat_error_runtime branch September 7, 2021 12:31
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.

2 participants