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 bug]layer to 'NoneType' object has no attribute 'place' #43597

Merged
merged 3 commits into from
Jun 21, 2022

Conversation

zhangbo9674
Copy link
Contributor

PR types

Bug fixes

PR changes

APIs

Describe

[FIx bug]layer to 'NoneType' object has no attribute 'place'

@paddle-bot-old
Copy link

你的PR提交成功,感谢你对开源项目的贡献!
请关注后续CI自动化测试结果,详情请参考Paddle-CI手册
Your PR has been submitted. Thanks for your contribution!
Please wait for the result of CI firstly. See Paddle CI Manual for details.

Copy link
Contributor

@zhiqiu zhiqiu left a comment

Choose a reason for hiding this comment

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

LGTM

@zhangbo9674 zhangbo9674 merged commit a1a2054 into PaddlePaddle:develop Jun 21, 2022
zhangbo9674 added a commit to zhangbo9674/Paddle that referenced this pull request Jun 21, 2022
lanxianghit pushed a commit that referenced this pull request Jun 22, 2022
…#43717)

bug:
当class Layer的_buffers中有参数为None的时候,调用to()方法将会报layer to 'NoneType' object has no attribute 'place'的错误。
修复方法:
to()方法增加对_buffers中None类型参数的判断,如果为None,跳过该参数的处理。
sneaxiy pushed a commit to sneaxiy/Paddle that referenced this pull request Jun 27, 2022
@zhangbo9674 zhangbo9674 deleted the dev/fix_layer_to_none branch March 2, 2023 03:00
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.

None yet

2 participants