Merged
新增DenseLightningIndexerKLLossGrad和DenseLightningIndexerKLLossGradMetadata算子 #9237
新增DenseLightningIndexerKLLossGrad和DenseLightningIndexerKLLossGradMetadata算子 #9237
Merged
llwy0320Add on Jul 27
llwy0320
llwy0320Collaborators
Jul 27

描述

新增DenseLightningIndexerKLLossGrad和DenseLightningIndexerKLLossGradMetadata算子

关联的Issue

#3875

测试

文档更新

类型标签

likedislike
Pull Request has been successfully merged by CANN-robot.
(Thank you for llwy0320's contribution.)
llwy0320llwy0320Collaborators
Jul 27 Created pull request, commit e4672b25
atomgit-bot
atomgit-bot
Jul 27 Comments:

🤖 正在生成合并请求摘要,请稍候…

likedislike
Incorrect?
CANN-robotCANN-robotCollaborators
Jul 27 Added label: cann-cla/yes
CANN-robot
CANN-robotCollaborators
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 /approve or /lgtm
  • Commenting /approve implies 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. 👍

likedislike
llwy0320
llwy0320Collaborators
Jul 27 Comments:

compile

likedislike
93 messages are collapsed here。 See more
gaoxiang618
gaoxiang618CollaboratorsJul 28Start code review1
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),
gaoxiang618
gaoxiang618Jul 28Comments:

cmpRatio使用%d打印

likedislike
gaoxiang618
gaoxiang618CollaboratorsJul 28Start code review1
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);
gaoxiang618
gaoxiang618Jul 28Comments:

dSizeQueryIndex使用%d打印,全局排查下,还有其他的,比如n2Size, bSize, s1Size, s2Size

likedislike
gitee-duhuiping
gitee-duhuipingCollaborators
Jul 28 Comments:

/approve

likedislike
CANN-robotCANN-robotCollaborators
Jul 28 Added label: approved
CANN-robotCANN-robotCollaborators
Jul 28 Merged pull request