Skip to content

Conversation

@zhwesky2010
Copy link
Collaborator

@zhwesky2010 zhwesky2010 commented Feb 3, 2026

API Compatibility Edit By AI Agent

PaddlePaddle/Paddle#77657

torch.block_diag
torch.broadcast_tensors
torch.cartesian_prod
torch.copysign
torch.Tensor.copysign
torch.Tensor.copysign_
torch.Tensor.geometric_
torch.Tensor.hypot_
torch.index_fill
torch.Tensor.index_fill
torch.Tensor.index_fill_
torch.pow
torch.Tensor.pow
torch.cross
torch.Tensor.cross
torch.dist
torch.Tensor.dist
torch.flip
torch.Tensor.flip
torch.renorm
torch.Tensor.renorm
torch.Tensor.renorm_

Copilot AI review requested due to automatic review settings February 3, 2026 10:52
@paddle-bot
Copy link

paddle-bot bot commented Feb 3, 2026

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

@github-actions
Copy link

github-actions bot commented Feb 3, 2026

📚 本次 PR 文档预览链接(点击展开)
ℹ️ 预览提醒
请等待 Docs-NEW 流水线运行完成后再点击预览链接,否则可能会看到旧版本内容或遇到链接无法访问的情况。

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

本 PR 主要更新了部分 Paddle API 中文文档的签名与参数说明(补充 out 关键字参数、以及与 PyTorch 对齐的参数别名),并删除了一批 PyTorch->Paddle API 差异说明的 Markdown 页面(位于 api_difference/ 下)。

Changes:

  • paddle.randint / paddle.gcd / paddle.lcm / paddle.i0 / paddle.i0e 等 API 文档补充 out(keyword-only)参数说明
  • relu / leaky_relu / as_strided 等 API 文档补充与 PyTorch 对齐的参数别名说明(如 inputsizestorage_offset 等)
  • 删除多个 convert_from_pytorch/api_difference/ 下的差异说明 Markdown 文件

Reviewed changes

Copilot reviewed 26 out of 26 changed files in this pull request and generated 1 comment.

Show a summary per file
File Description
docs/guides/model_convert/convert_from_pytorch/api_difference/torch_more_args/torch.randint.md 删除 torch_more_args 差异说明页(torch.randint)
docs/guides/model_convert/convert_from_pytorch/api_difference/torch_more_args/torch.nn.functional.relu.md 删除 torch_more_args 差异说明页(torch.nn.functional.relu)
docs/guides/model_convert/convert_from_pytorch/api_difference/torch_more_args/torch.nn.functional.leaky_relu.md 删除 torch_more_args 差异说明页(torch.nn.functional.leaky_relu)
docs/guides/model_convert/convert_from_pytorch/api_difference/torch_more_args/torch.linalg.inv.md 删除 torch_more_args 差异说明页(torch.linalg.inv)
docs/guides/model_convert/convert_from_pytorch/api_difference/torch_more_args/torch.lcm.md 删除 torch_more_args 差异说明页(torch.lcm)
docs/guides/model_convert/convert_from_pytorch/api_difference/torch_more_args/torch.inverse.md 删除 torch_more_args 差异说明页(torch.inverse)
docs/guides/model_convert/convert_from_pytorch/api_difference/torch_more_args/torch.gcd.md 删除 torch_more_args 差异说明页(torch.gcd)
docs/guides/model_convert/convert_from_pytorch/api_difference/paddle_more_args/torch.Tensor.fill_diagonal_.md 删除 paddle_more_args 差异说明页(torch.Tensor.fill_diagonal_)
docs/guides/model_convert/convert_from_pytorch/api_difference/args_name_diff/torch.relu.md 删除 args_name_diff 差异说明页(torch.relu)
docs/guides/model_convert/convert_from_pytorch/api_difference/args_name_diff/torch.nn.functional.relu_.md 删除 args_name_diff 差异说明页(torch.nn.functional.relu_)
docs/guides/model_convert/convert_from_pytorch/api_difference/args_name_diff/torch.nn.functional.leaky_relu_.md 删除 args_name_diff 差异说明页(torch.nn.functional.leaky_relu_)
docs/guides/model_convert/convert_from_pytorch/api_difference/args_name_diff/torch.as_strided.md 删除 args_name_diff 差异说明页(torch.as_strided)
docs/guides/model_convert/convert_from_pytorch/api_difference/args_name_diff/torch.Tensor.lcm_.md 删除 args_name_diff 差异说明页(torch.Tensor.lcm_)
docs/guides/model_convert/convert_from_pytorch/api_difference/args_name_diff/torch.Tensor.lcm.md 删除 args_name_diff 差异说明页(torch.Tensor.lcm)
docs/guides/model_convert/convert_from_pytorch/api_difference/args_name_diff/torch.Tensor.gcd_.md 删除 args_name_diff 差异说明页(torch.Tensor.gcd_)
docs/guides/model_convert/convert_from_pytorch/api_difference/args_name_diff/torch.Tensor.gcd.md 删除 args_name_diff 差异说明页(torch.Tensor.gcd)
docs/guides/model_convert/convert_from_pytorch/api_difference/args_name_diff/torch.Tensor.cumsum_.md 删除 args_name_diff 差异说明页(torch.Tensor.cumsum_)
docs/guides/model_convert/convert_from_pytorch/api_difference/args_name_diff/torch.Tensor.as_strided.md 删除 args_name_diff 差异说明页(torch.Tensor.as_strided)
docs/api/paddle/randint_cn.rst 更新 paddle.randint 签名与参数:增加 out,补充 shape 别名 size
docs/api/paddle/nn/functional/relu_cn.rst 补充 x 的别名 input 说明
docs/api/paddle/nn/functional/leaky_relu_cn.rst 补充 x 的别名 input 说明
docs/api/paddle/lcm_cn.rst 更新 paddle.lcm 签名与参数:增加 out,补充 x/y 别名 input/other
docs/api/paddle/i0e_cn.rst 更新 paddle.i0e 签名与参数:增加 out,新增关键字参数小节
docs/api/paddle/i0_cn.rst 更新 paddle.i0 签名与参数:增加 out,新增关键字参数小节
docs/api/paddle/gcd_cn.rst 更新 paddle.gcd 签名与参数:增加 out,补充 x/y 别名 input/other
docs/api/paddle/as_strided_cn.rst 补充 x/shape/offset 的别名(input/size/storage_offset)说明

\end{aligned}
\right. \\

其中,:math:`x` 为输入的 Tensor。
Copy link

Copilot AI Feb 3, 2026

Choose a reason for hiding this comment

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

这里在段落“其中,:math:x 为输入的 Tensor。”之后紧接着出现“参数”小节标题,中间缺少空行。reStructuredText 中段落与后续章节标题之间通常需要空行分隔,否则可能导致 Sphinx 解析/渲染异常或产生告警。建议在该段落后补一行空行再开始“参数”小节。

Suggested change
其中,:math:`x` 为输入的 Tensor。
其中,:math:`x` 为输入的 Tensor。

Copilot uses AI. Check for mistakes.
@zhwesky2010 zhwesky2010 changed the title Fix Some API docs [API Compatibility] cross/dist/flip/renorm_/unsqueeze/index_fill/cartesian_prod/block_diag/copysign Edit By AI Feb 3, 2026
@zhwesky2010 zhwesky2010 changed the title [API Compatibility] cross/dist/flip/renorm_/unsqueeze/index_fill/cartesian_prod/block_diag/copysign Edit By AI [API Compatibility] block_diag/broadcast_tensors/cartesian_prod/copysign/index_fill/cross/dist/flip/pow Edit By AI Feb 5, 2026
@zhwesky2010 zhwesky2010 force-pushed the 61 branch 4 times, most recently from cda11af to cff1c82 Compare February 6, 2026 12:08
…ign/index_fill/cross/dist/flip/pow/renorm Edit By AI Agent
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.

1 participant