-
Notifications
You must be signed in to change notification settings - Fork 5.7k
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
delete the function of saving layer object. #33697
Conversation
Thanks for your contribution! |
Sorry to inform you that 6057bec's CIs have passed for more than 7 days. To prevent PR conflicts, you need to re-run all CIs manually. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
文档需要一起修改吗
python/paddle/framework/io.py
Outdated
|
||
_parse_every_object(self.__dict__, is_param_or_layer, collect_params) | ||
return self.__reduce_ex__(protocol) | ||
raise ValueError("paddle do not support saving layer object.") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
layer
-> paddle.nn.Layer
,报错提示更准确
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thx, done.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
* delete the function of saving layer object. * edit doc of paddle.save/load and polish error message
PR types
Bug fixes
PR changes
APIs
Describe
下线保存layer的功能。