Skip to content

fix api paddle.trace stack overflow#35419

Merged
jeff41404 merged 1 commit intoPaddlePaddle:developfrom
jeff41404:fix_trace_op_stack_overflow
Sep 7, 2021
Merged

fix api paddle.trace stack overflow#35419
jeff41404 merged 1 commit intoPaddlePaddle:developfrom
jeff41404:fix_trace_op_stack_overflow

Conversation

@jeff41404
Copy link
Contributor

PR types

Bug fixes

PR changes

APIs

Describe

问题:paddle.trace 的参数 axis1 和 axis2 输入不合法的值时,会发生栈溢出
原因:axis1 和 axis2 输入合法性判断之前只覆盖了静态图分支,而未覆盖动态图分支
方案:axis1 和 axis2 输入合法性判断覆盖动态图分支
效果:能够检测非法的axis1 和 axis2输入,在Python中提醒用户

@paddle-bot-old
Copy link

paddle-bot-old bot commented Sep 2, 2021

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

Copy link
Contributor

@XiaoguangHu01 XiaoguangHu01 left a comment

Choose a reason for hiding this comment

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

LGTM

@jeff41404 jeff41404 merged commit d47a97d into PaddlePaddle:develop Sep 7, 2021
@jeff41404 jeff41404 deleted the fix_trace_op_stack_overflow branch September 7, 2021 10:16
AnnaTrainingG pushed a commit to AnnaTrainingG/Paddle that referenced this pull request Sep 29, 2021
Co-authored-by: root <root@bjyz-sys-gpu-kongming9.bjyz.baidu.com>
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