Skip to content

Conversation

YuanRisheng
Copy link
Contributor

@YuanRisheng YuanRisheng commented Jul 13, 2022

优化save/load文档内容和结构

@paddle-bot
Copy link

paddle-bot bot commented Jul 13, 2022

感谢你贡献飞桨文档,文档预览构建中,Docs-New 跑完后即可预览,预览链接:http://preview-pr-5077.paddle-docs-preview.paddlepaddle.org.cn/documentation/docs/zh/api/index_cn.html
预览工具的更多说明,请参考:[Beta]飞桨文档预览工具

"\n",
"如下图所示,动态图模式下,模型结构指的是 Python 前端组网代码;模型参数主要指网络层 `Layer.state_dict()` 和优化器 `Optimizer.state_dict()`中存放的参数字典。`state_dict()`中存放了模型参数信息,包括所有可学习的和不可学习的参数(parameters 和 buffers),从网络层(Layer)和优化器(Optimizer)中获取,以字典形式存储,key 为参数名,value 为对应参数数据(Tensor)。\n",
"\n",
"![img](http://rte.weiyun.baidu.com/api/imageDownloadAddress?attachId=8501d49fd5f74065a50f589351ed94f4)\n",
Copy link
Collaborator

Choose a reason for hiding this comment

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

图挂了,一起上传了,用相对路径吧

Copy link
Contributor Author

Choose a reason for hiding this comment

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

done

Copy link
Collaborator

@momozi1996 momozi1996 left a comment

Choose a reason for hiding this comment

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

LGTM

@moguguo moguguo requested review from moguguo and removed request for moguguo August 2, 2022 02:39
Copy link
Collaborator

@Ligoml Ligoml left a comment

Choose a reason for hiding this comment

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

LGTM

@Ligoml Ligoml merged commit 6ebd537 into PaddlePaddle:develop Aug 2, 2022
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.

4 participants