-
Notifications
You must be signed in to change notification settings - Fork 883
[API Compatibility] block_diag/broadcast_tensors/cartesian_prod/copysign/index_fill/cross/dist/flip/pow Edit By AI #7717
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: develop
Are you sure you want to change the base?
Conversation
|
感谢你贡献飞桨文档,文档预览构建中,Docs-New 跑完后即可预览,预览链接:http://preview-pr-7717.paddle-docs-preview.paddlepaddle.org.cn/documentation/docs/zh/api/index_cn.html |
📚 本次 PR 文档预览链接(点击展开)
|
There was a problem hiding this 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 对齐的参数别名说明(如input、size、storage_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。 |
Copilot
AI
Feb 3, 2026
There was a problem hiding this comment.
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 解析/渲染异常或产生告警。建议在该段落后补一行空行再开始“参数”小节。
| 其中,:math:`x` 为输入的 Tensor。 | |
| 其中,:math:`x` 为输入的 Tensor。 |
cda11af to
cff1c82
Compare
…ign/index_fill/cross/dist/flip/pow/renorm Edit By AI Agent
API Compatibility Edit By AI Agent
PaddlePaddle/Paddle#77657