[API Compatibility No.9] Update cumsum_ doc and remove diff note -part#7704
Open
xunyoyo wants to merge 1 commit intoPaddlePaddle:developfrom
Open
[API Compatibility No.9] Update cumsum_ doc and remove diff note -part#7704xunyoyo wants to merge 1 commit intoPaddlePaddle:developfrom
xunyoyo wants to merge 1 commit intoPaddlePaddle:developfrom
Conversation
|
感谢你贡献飞桨文档,文档预览构建中,Docs-New 跑完后即可预览,预览链接:http://preview-pr-7704.paddle-docs-preview.paddlepaddle.org.cn/documentation/docs/zh/api/index_cn.html |
Contributor
There was a problem hiding this comment.
Pull request overview
该 PR 主要是更新 paddle.cumsum_ 的中文文档,补充 dim 参数别名说明,并在与 PyTorch 对齐后移除不再成立的参数名差异说明页面。
Changes:
- 在
paddle.cumsum_中文 API 文档中新增「参数」小节,明确axis的别名为dim,并补充各参数说明。 - 删除
torch.Tensor.cumsum_与paddle.Tensor.cumsum_仅参数名不一致的差异说明文档,因为参数名已对齐(通过别名方式)。
Reviewed changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.
| File | Description |
|---|---|
| docs/guides/model_convert/convert_from_pytorch/api_difference/args_name_diff/torch.Tensor.cumsum_.md | 移除已不再适用的参数名差异说明文档,避免误导用户。 |
| docs/api/paddle/cumsum__cn.rst | 为 paddle.cumsum_ 增加参数列表,标明 axis 的别名为 dim,并补充 x/axis/dtype/name 的中文说明。 |
📚 本次 PR 文档预览链接(点击展开)
|
Echo-Nie
approved these changes
Feb 4, 2026
Collaborator
|
冲突啦 |
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.
PR Category
User Experience
PR Types
New features
Description
dimalias forpaddle.cumsum_.