[Doc Link Fix No.80-No.84] 文档链接修复#7761
Merged
Echo-Nie merged 2 commits intoPaddlePaddle:developfrom Feb 19, 2026
Merged
Conversation
|
感谢你贡献飞桨文档,文档预览构建中,Docs-New 跑完后即可预览,预览链接:http://preview-pr-7761.paddle-docs-preview.paddlepaddle.org.cn/documentation/docs/zh/api/index_cn.html |
Contributor
There was a problem hiding this comment.
Pull request overview
This PR aims to fix broken documentation links in PyTorch API comparison documentation (tasks 80-84 from issue #7735). The links were broken due to PyTorch official documentation structure changes. The PR updates both external PyTorch documentation links and internal PaddlePaddle API reference links.
Changes:
- Updated PyTorch documentation links from
pytorch.orgtodocs.pytorch.orgdomain with corrected paths - Updated PaddlePaddle internal API documentation links to use new URL structure with anchor-based navigation
- Fixed links in 5 API difference documentation files related to autograd functionality
Reviewed changes
Copilot reviewed 5 out of 5 changed files in this pull request and generated 1 comment.
Show a summary per file
| File | Description |
|---|---|
torch.autograd.Function.forward.md |
Updated PyTorch link; CRITICAL ISSUE: PaddlePaddle link points to wrong API |
torch.autograd.enable_grad.md |
Updated PyTorch link from autograd module to top-level torch module |
torch.autograd.function.FunctionCtx.md |
Updated PyTorch link to autograd.html page |
torch.autograd.function.FunctionCtx.mark_non_differentiable.md |
Updated both PyTorch and PaddlePaddle links with new structure |
torch.autograd.function.FunctionCtx.save_for_backward.md |
Updated both PyTorch and PaddlePaddle links with new anchor format |
...nvert/convert_from_pytorch/api_difference/invok_only_diff/torch.autograd.Function.forward.md
Outdated
Show resolved
Hide resolved
…invok_only_diff/torch.autograd.Function.forward.md Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Contributor
|
标题可以去掉’-part‘:我搜索了这些错误链接,不存在于Paddle中,即不用修改第二个库,那么此PR为该404链接最后一条PR~ |
Contributor
Author
|
@HZ1ovo 已修改 |
Echo-Nie
approved these changes
Feb 19, 2026
📚 本次 PR 文档预览链接(点击展开)
|
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.
修复内容
任务 :
原链接:https://pytorch.org/docs/stable/generated/torch.autograd.Function.html#torch.autograd.Function.forward
新链接:https://docs.pytorch.org/docs/stable/generated/torch.autograd.Function.forward.html#torch.autograd.Function.forward
原链接:https://pytorch.org/docs/stable/generated/torch.autograd.html#torch.autograd.enable_grad
新链接:https://docs.pytorch.org/docs/stable/generated/torch.enable_grad.html#torch.enable_grad
原链接:https://pytorch.org/docs/stable/generated/torch.autograd.function.FunctionCtx.html#torch.autograd.function.FunctionCtx.mark_non_differentiable
新链接:https://docs.pytorch.org/docs/stable/generated/torch.autograd.function.FunctionCtx.mark_non_differentiable.html#torch.autograd.function.FunctionCtx.mark_non_differentiable
原链接:https://pytorch.org/docs/stable/generated/torch.autograd.function.FunctionCtx.html#torch.autograd.function.FunctionCtx
新链接:https://docs.pytorch.org/docs/stable/autograd.html#torch.autograd.function.FunctionCtx
原链接:https://pytorch.org/docs/stable/generated/torch.autograd.function.FunctionCtx.html#torch.autograd.function.FunctionCtx.save_for_backward
新链接:https://docs.pytorch.org/docs/stable/generated/torch.autograd.function.FunctionCtx.save_for_backward.html#torch.autograd.function.FunctionCtx.save_for_backward
备注
示例:


原链接:
修复后:
原链接:

修复后:

验证结果
已手动访问所有更新后的链接,确认所有链接可正常访问
@HZ1ovo @Echo-Nie