Merged
docs: 修正算子接口文档中的表述问题 #15771
周云飞Add on 17 days ago
docs: 修正算子接口文档中的表述问题 #15771
Merged
Pull Request has been successfully merged by CANN-robot.
(Thank you for 周云飞's contribution.)atomgit-bot
17 days ago Comments:
17 days ago Comments:
变更摘要
本 PR 为纯文档修正,仅调整算子接口文档(含 aclnn 接口文档、Torch API 文档与算子列表)中的表述问题,使描述与接口定义及上下文保持一致。修改覆盖注意力、FFN、GMM、MC2、MHC、MoE、位置编码等模块,主要涉及参数名拼写统一、公式符号与变量名更正、示例代码变量名对齐、术语规范化(如 PageAttention 统一为 PagedAttention)以及少量排版调整,不涉及任何实现逻辑变更。
主要改动
- 参数名与接口描述对齐:
aclnnFlashAttentionVarLenScoreV5的可选输入由sinkInOptional更正为sinkOptional,aclnnDenseLightningIndexerGradKLLoss的空 Tensor 说明改为接口实际使用的queryIndex、keyIndex、weights,aclnnMlaPrologV3WeightNz中dequantScaleQNormOptional更正为dequantScaleQNormOutOptional。 - GMM 示例变量与参数名统一:
aclnnGroupedMatmulFinalizeRouting系列(含 V2/V3、WeightNzV2)示例变量由shareInputWeight改为sharedInputWeight,shareInputLen改为sharedInputLen,并同步更新GetWorkspaceSize调用处的实参名称。 - 公式符号修正: 反向计算相关文档将
V、Q、K更正为dV、dQ、dK(aclnnFlashAttentionScoreGradV2/V3),aclnnFlashAttentionScoreGradV2中Mask函数的括号位置修正为Mask(\frac{QK^T}{\sqrt{d}}+pse,atten\_mask);MC2 系列文档中ataOut统一改为dataOut。 - 术语与拼写规范化: 多个文档中
PageAttention统一为PagedAttention、transform改为transformer、dquant改为dequant、per-tensor补全连字符,SeqLens参数组统一为SeqLengths参数组,aclnnLightningIndexerGrad示例变量deteminstic更正为deterministic。 - 输入输出名称与描述纠正:
aclnnFusedInferAttentionScoreV4表格中输出名attention改为attentionOut,aclnnNsaCompressAttentionInfer错误码说明中attentionOut改为output,aclnnNsaSelectedAttentionInfer的attentionOut说明由"预留参数,暂未使用"改为"用于接收attention计算结果",aclnnSparseFlashMlaGrad中outOptional更正为out。
🧩 本次 Review 已使用自定义 Skill:


Incorrect?
17 days ago Added label: cann-cla/yes
CANN-robot
17 days ago Comments:
17 days ago Comments:
Thanks for your pull-request.
The full list of commands accepted by me can be found at here.
You can get sig-info at here.
You can self-configure the PR merge rules for this repository. For more details, please refer to Here.
For more, you also can visit HICANN.
PR Approval Progress
✅ Congratulations! All modules have met the lgtm and approve requirements.
Module Approval Details
| module | lgtm status | approve status |
|---|---|---|
| */*/README.md | ✅ 蔡雯雯, 杨露, kdy18482276080, 於欣洁 (4/2) | ✅ 蔡雯雯, 杨露 (2/1) |
| */*/docs/acl*.md | ✅ 於欣洁, 蔡雯雯, 杨露, yangzeheng, wang-minbo, kdy18482276080 (6/2) | ✅ 蔡雯雯, 杨露 (2/1) |
| attention | ✅ 於欣洁, kdy18482276080 (2/2) | ✅ 於欣洁, kdy18482276080 (2/1) |
| docs | ✅ 於欣洁, wang-minbo (2/2) | ✅ 於欣洁, wang-minbo (2/1) |
| mc2 | ✅ yangzeheng, wang-minbo (2/2) | ✅ wang-minbo (1/1) |
| posembedding | ✅ kdy18482276080, 於欣洁 (2/2) | ✅ kdy18482276080, 於欣洁 (2/1) |
💡 Tip:
- Committer can comment
/approveor/lgtm- Commenting
/approveimplies both code review (lgtm) and intent to merge (approve)
CLA Signature Pass
zzzzzzyf_, thanks for your pull request. All authors of the commits have signed the CLA. 👍


17 days ago Associated issue: [Documentation|文档反馈]: flash_attn.md 文档存在 2 处问题需修正
44 messages are collapsed here。 See more
yanglu-1
17 days ago Comments:
17 days ago Comments:
/lgtm
/approve


kdy18482276080
17 days ago Comments:
17 days ago Comments:
/lgtm
/approve


17 days ago Added label: lgtm
17 days ago Closed associated issue
17 days ago Merged pull request
描述
修正算子文档中的接口参数名、公式符号、示例变量、文字和排版问题,并核对相关中英文文档。
同步 master 后,#7429、#7430、#7435 对应问题已由上游 PR #15715 修复,保留上游修改。
按门禁反馈回退了三个缺少 UT 的算子文档改动,并同步 sparse_lightning_indexer 的中英文 README。
关联的Issue
#7379、#7380、#7381、#7382、#7383、#7384
#7385、#7386、#7388、#7389、#7391、#7392
#7393、#7394、#7395、#7396、#7397、#7398
#7399、#7400、#7402、#7403、#7404、#7405
#7406、#7407、#7408、#7409、#7410、#7411
#7412、#7413、#7414、#7415、#7416、#7417
#7419、#7420、#7421、#7422、#7423、#7424
#7425、#7426、#7427、#7428、#7429、#7430
#7431、#7432、#7434、#7435、#7437、#7438
#7439、#7440
测试
文档更新
修正相关算子 API、Torch API 文档和算子列表。
类型标签