Merged
新增DenseLightningIndexerKLLossGrad和DenseLightningIndexerKLLossGradMetadata算子 #9237
llwy0320Add on Jul 27
新增DenseLightningIndexerKLLossGrad和DenseLightningIndexerKLLossGradMetadata算子 #9237
Merged
Merged fromllwy0320/ops-transformer727intocann/ops-transformermaster
Pull Request has been successfully merged by CANN-robot.
(Thank you for llwy0320's contribution.)atomgit-bot
Jul 27 Comments:
Jul 27 Comments:
🤖 正在生成合并请求摘要,请稍候…


Incorrect?
Jul 27 Added label: cann-cla/yes
CANN-robot
Jul 27 Comments:
Jul 27 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
PR Approval Progress
✅ Congratulations! All modules have met the lgtm and approve requirements.
Module Approval Details
| module | lgtm status | approve status |
|---|---|---|
| */*/README.md | ✅ 马兵, 刘丹, 杜慧萍 (3/2) | ✅ 杜慧萍 (1/1) |
| */*/docs/acl*.md | ✅ 杜慧萍, 马兵, 刘丹 (3/2) | ✅ 杜慧萍 (1/1) |
| */*/op_graph/*_proto.h | ✅ 王永光, 马兵, 刘丹 (3/2) | ✅ 王永光 (1/1) |
| */*/op_host/*_def.cpp | ✅ 王永光, 刘丹, 马兵 (3/2) | ✅ 王永光 (1/1) |
| */*/op_host/op_api/aclnn*.h | ✅ 王永光, 刘丹, 马兵 (3/2) | ✅ 王永光 (1/1) |
| attention | ✅ 刘丹, 马兵 (2/2) | ✅ 刘丹 (1/1) |
| docs | ✅ 刘丹, 马兵 (2/2) | ✅ 刘丹 (1/1) |
| sig-ops-transformer | ✅ 马兵, 刘丹 (2/2) | ✅ 刘丹 (1/1) |
💡 Tip:
- Committer can comment
/approveor/lgtm- Commenting
/approveimplies both code review (lgtm) and intent to merge (approve)
CLA Signature Pass
llwy0320, thanks for your pull request. All authors of the commits have signed the CLA. 👍


llwy0320
Jul 27 Comments:
Jul 27 Comments:
compile


93 messages are collapsed here。 See more
attention/dense_lightning_indexer_kl_loss_grad/op_host/arch35/dense_lightning_indexer_kl_loss_grad_tiling_general_regbase.cpp
@@ -0,0 +301,4 @@
301+ (sparseMode != SPARSE_MODE_SIZE_3 && sparseMode != SPARSE_MODE_SIZE_0),
302+ OP_LOGE(opName, " The value of mask_mode is [%ld], but currently only supports mode [0,3].", sparseMode),
303+ return false);
304+ OP_CHECK_IF((cmpRatio < CMP_RATIO_1 || cmpRatio > CMP_RATIO_128),
cmpRatio使用%d打印


attention/dense_lightning_indexer_kl_loss_grad/op_host/arch35/dense_lightning_indexer_kl_loss_grad_tiling_general_regbase.cpp
@@ -0,0 +343,4 @@
343+ OP_CHECK_IF(n2Size != 1, OP_LOGE(opName, "Inputshape N Size of Key should be 1, but got %ld.", n2Size),
344+ return false);
345+ gSizeQueryIndex = queryIndexShape.GetDim(1) / n2Size;
346+ dSizeQueryIndex = queryIndexShape.GetDim(2);
dSizeQueryIndex使用%d打印,全局排查下,还有其他的,比如n2Size, bSize, s1Size, s2Size


gitee-duhuiping
Jul 28 Comments:
Jul 28 Comments:
/approve


Jul 28 Added label: approved
Jul 28 Merged pull request
描述
新增DenseLightningIndexerKLLossGrad和DenseLightningIndexerKLLossGradMetadata算子
关联的Issue
#3875
测试
文档更新
类型标签