Skip to content

Conversation

@zyfncg
Copy link
Contributor

@zyfncg zyfncg commented Nov 25, 2021

PR types

Bug fixes

PR changes

OPs

Describe

22e3217f14d6ddc8f667a6d23167f697
slice_grad op在选择kernel过程中出现了图中错误,问题原因是在获取use_mkldnn属性时,map中未找到该键值,所以抛出out_of_range异常
本PR在map获取use_mkldnn属性数据前增加了是否存在该键值的判断逻辑,从而避免出现上述异常

@paddle-bot-old
Copy link

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

Copy link
Contributor

@chenwhql chenwhql left a comment

Choose a reason for hiding this comment

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

LGTM

@zyfncg zyfncg merged commit e2fdb08 into PaddlePaddle:develop Nov 26, 2021
@zyfncg zyfncg deleted the fix_mkldnn_attr branch November 26, 2021 03:28
Zjq9409 pushed a commit to Zjq9409/Paddle that referenced this pull request Dec 10, 2021
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