Skip to content

[Doc Link Fix No.80-No.84] 文档链接修复#7761

Merged
Echo-Nie merged 2 commits intoPaddlePaddle:developfrom
aotenjou:develop
Feb 19, 2026
Merged

[Doc Link Fix No.80-No.84] 文档链接修复#7761
Echo-Nie merged 2 commits intoPaddlePaddle:developfrom
aotenjou:develop

Conversation

@aotenjou
Copy link
Contributor

修复内容

任务 :

  1. docs/guides/model_convert/convert_from_pytorch/api_difference/invok_only_diff/torch.autograd.Function.forward.md

原链接: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

  1. docs/guides/model_convert/convert_from_pytorch/api_difference/invok_only_diff/torch.autograd.enable_grad.md

原链接: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

  1. docs/guides/model_convert/convert_from_pytorch/api_difference/invok_only_diff/torch.autograd.function.FunctionCtx.mark_non_differentiable.md

原链接: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

  1. docs/guides/model_convert/convert_from_pytorch/api_difference/invok_only_diff/torch.autograd.function.FunctionCtx.md

原链接: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

  1. docs/guides/model_convert/convert_from_pytorch/api_difference/invok_only_diff/torch.autograd.function.FunctionCtx.save_for_backward.md

原链接: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

  • 404归因: PyTorch 官方文档结构调整。此外对PaddlePaddle文档内部索引做了修复。

备注

示例:
原链接:
image
修复后:
image

原链接:
image

修复后:
image

验证结果

已手动访问所有更新后的链接,确认所有链接可正常访问

@HZ1ovo @Echo-Nie

Copilot AI review requested due to automatic review settings February 18, 2026 03:28
@paddle-bot
Copy link

paddle-bot bot commented Feb 18, 2026

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

@CLAassistant
Copy link

CLAassistant commented Feb 18, 2026

CLA assistant check
All committers have signed the CLA.

Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

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.org to docs.pytorch.org domain 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

…invok_only_diff/torch.autograd.Function.forward.md

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Copy link
Contributor

@HZ1ovo HZ1ovo left a comment

Choose a reason for hiding this comment

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

LGTM

@HZ1ovo
Copy link
Contributor

HZ1ovo commented Feb 18, 2026

标题可以去掉’-part‘:我搜索了这些错误链接,不存在于Paddle中,即不用修改第二个库,那么此PR为该404链接最后一条PR~

@aotenjou aotenjou changed the title [Doc Link Fix No.80-No.84] 文档链接修复-part [Doc Link Fix No.80-No.84] 文档链接修复 Feb 19, 2026
@aotenjou
Copy link
Contributor Author

@HZ1ovo 已修改

@github-actions
Copy link

📚 本次 PR 文档预览链接(点击展开)
ℹ️ 预览提醒
请等待 Docs-NEW 流水线运行完成后再点击预览链接,否则可能会看到旧版本内容或遇到链接无法访问的情况。
  • docs/guides/model_convert/convert_from_pytorch/api_difference/invok_only_diff/torch.autograd.Function.forward.md: 点击预览
  • docs/guides/model_convert/convert_from_pytorch/api_difference/invok_only_diff/torch.autograd.enable_grad.md: 点击预览
  • docs/guides/model_convert/convert_from_pytorch/api_difference/invok_only_diff/torch.autograd.function.FunctionCtx.mark_non_differentiable.md: 点击预览
  • docs/guides/model_convert/convert_from_pytorch/api_difference/invok_only_diff/torch.autograd.function.FunctionCtx.md: 点击预览
  • docs/guides/model_convert/convert_from_pytorch/api_difference/invok_only_diff/torch.autograd.function.FunctionCtx.save_for_backward.md: 点击预览

@Echo-Nie Echo-Nie merged commit f11e876 into PaddlePaddle:develop Feb 19, 2026
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants

Comments