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

fix the crash when input variable is bool type. #35176

Merged
merged 1 commit into from
Aug 27, 2021

Conversation

winter-wang
Copy link
Contributor

PR types

Bug fixes

PR changes

Others

Describe

scale op不支持bool类型的输入。paddle在保存模型时,会在某些条件下针对某些variable插入缩放值为1的scale op。当该variable的类型为bool时,就会导致崩溃。在pr中,针对bool类型variable,跳过插入scale op操作。
卡片链接: https://console.cloud.baidu-int.com/devops/icafe/issue/DLTP-20041/show?cid=5&from=hi&noticeStatistics=65319290

@paddle-bot-old
Copy link

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

@Shixiaowei02 Shixiaowei02 merged commit ad52248 into PaddlePaddle:develop Aug 27, 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