[Doc Link Fix No.99] Fix docs link in page torch.optim.Optimizer.load_state_dict.md#7782
Open
ShigureNyako wants to merge 2 commits intoPaddlePaddle:developfrom
Open
Conversation
|
感谢你贡献飞桨文档,文档预览构建中,Docs-New 跑完后即可预览,预览链接:http://preview-pr-7782.paddle-docs-preview.paddlepaddle.org.cn/documentation/docs/zh/api/index_cn.html |
Contributor
Author
|
@SigureMo 已自查 diff:仅修复 1 处失效链接(load_state_dict),辛苦 review 一下喵~ |
📚 本次 PR 文档预览链接(点击展开)
|
SigureMo
requested changes
Feb 27, 2026
...convert_from_pytorch/api_difference/invok_only_diff/torch.optim.Optimizer.load_state_dict.md
Outdated
Show resolved
Hide resolved
Contributor
Author
|
@SigureMo 已按建议修改为 Paddle 源码 permalink(set_state_dict / load_state_dict 别名实现):https://github.com/PaddlePaddle/Paddle/blob/7763841cacc6f3235e97c0cacd0a7381860e044c/python/paddle/optimizer/optimizer.py#L445-L519 ,辛苦复看~ |
SigureMo
requested changes
Feb 28, 2026
| ``` | ||
|
|
||
| ### [paddle.optimizer.Optimizer.load_state_dict](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/optimizer/Optimizer/load_state_dict_cn.html#paddle/optimizer/Optimizer/load_state_dict_cn#cn-api-paddle-optimizer-Optimizer-load_state_dict) | ||
| ### [paddle.optimizer.Optimizer.load_state_dict](https://github.com/PaddlePaddle/Paddle/blob/7763841cacc6f3235e97c0cacd0a7381860e044c/python/paddle/optimizer/optimizer.py#L445-L519) |
Member
There was a problem hiding this comment.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
修复内容
任务 99:
torch.optim.Optimizer.load_state_dict.md验证结果
已手动检查更新后的链接格式与同目录已合并修复(state_dict)一致,避免跳转到文档首页。
Related links: