Merged
TensorAPI添加自定义Op样例 #6174
ca1kwAdd on Sep 18
TensorAPI添加自定义Op样例 #6174
Merged
Merged fromca1kw/asc-devkitdev_masterintocann/asc-devkitmaster
Pull Request has been successfully merged by CANN-robot.
(Thank you for ca1kw's contribution.)Sep 18 Added label: cann-cla/yes
CANN-robot
Sep 18 Comments:
Sep 18 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 |
|---|---|---|
| examples | ✅ changxianyu, 苏建加 (2/2) | ✅ changxianyu (1/1) |
💡 Tip:
- Committer can comment
/approveor/lgtm- Commenting
/approveimplies both code review (lgtm) and intent to merge (approve)
CLA Signature Pass
ca1kw, thanks for your pull request. All authors of the commits have signed the CLA. 👍


CANN-robot
Sep 18 Comments:
Sep 18 Comments:
Sep 18 Set zengjuan,zhanghao_0689,suqwe,wulinyu,kong0808,dengjing_aoe,YeZZzzz1,bluesky901,yangbinhua,zhudi22,chenyiyuan,xun_zhuge,XuebinYang,sjtulxh,bianque,houyuyang,Lycheeeee,YANXI_ZHAO,chentianyu19,shi_nanxiang,wuyang_hw,jiangxinyu3,munanhw,ai_xin,ascendhjh,hujiawen_kaven,wangxiaozhi,DragonBornHD84,louyuxuan,changxianyu,hyolee,yukangchen as approver
Sep 18 Set zengjuan,zhanghao_0689,suqwe,wulinyu,kong0808,dengjing_aoe,YeZZzzz1,bluesky901,yangbinhua,zhudi22,chenyiyuan,xun_zhuge,XuebinYang,sjtulxh,bianque,houyuyang,Lycheeeee,YANXI_ZHAO,chentianyu19,shi_nanxiang,wuyang_hw,jiangxinyu3,munanhw,ai_xin,ascendhjh,hujiawen_kaven,wangxiaozhi,DragonBornHD84,louyuxuan,changxianyu,hyolee,yukangchen as approver
99 messages are collapsed here。 See more
changxianyu
Sep 22 Comments:
Sep 22 Comments:
/approve


Sep 22 Added label: approved
suqwe
Sep 22 Comments:
Sep 22 Comments:
/lgtm


Sep 22 Added label: lgtm
Sep 22 Merged pull request
描述
概述
这是一个基于 Tensor API 的固定 Shape QKV 投影样例(dav-3510,CANN >= 9.2.0),核心目的是演示如何自定义 Copy Operation 并接入 Tensor API 的 Atom 调用流程。
功能
[16, 64, 256](Batch, Sequence, Hidden)[1024, 768],Q/K/V 三个投影结果在最后一维连续排列(只做投影计算,不拆分 Q/K/V)weight[H, 3H]与bias[3H]在所有 Batch 之间共享核心亮点:自定义拷贝算子 copy_slice_gm_to_l1
copy_traits接入 Tensor API,可像内置 copy 一样用make_copy/copy(atom, dst, src)调用asc_set_gm2l1_nz_para(NZ 目的布局参数打包)+asc_copy_gm2l1_nd2nz关联的Issue
测试
文档更新
类型标签