已合并
【CANN开源开放社区任务】【社区任务】AscendC实现Polar算子贡献 #2923
bububu创建于 5月23日
【CANN开源开放社区任务】【社区任务】AscendC实现Polar算子贡献 #2923
已合并
Pull Request已成功合入, 合并人@CANN-robot
(感谢 bububu 的贡献)5月23日 添加了label:stat/needs-squash
CANN-robot
5月23日 评论:
5月23日 评论:
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 |
|---|---|---|
| experimental | ✅ 傅涛, 周奇龙 (2/2) | ✅ 傅涛, 周奇龙 (2/1) |
💡 Tip:
- Committer can comment
/approveor/lgtm- Commenting
/approveimplies both code review (lgtm) and intent to merge (approve)
CLA Signature Pass
LiJianhao2, thanks for your pull request. All authors of the commits have signed the CLA. 👍


5月23日 将FelixTang7,yu-xinjie62,zhou-qilong,wangrui_,wei-peng-1991,renruhai,su-yueming,zhajianqing123,rxtfeng,luowen203_gg123,loov1,zhangzijie,jia0liang,chenqi317,liu-wei,LiuXinxin23,fullt,LiWei79,songkai111,zhangyuxiang0119,demoauguste,llimwang,gubaocheng设为评审人
5月23日 将FelixTang7,yu-xinjie62,zhou-qilong,wangrui_,wei-peng-1991,renruhai,su-yueming,zhajianqing123,rxtfeng,luowen203_gg123,loov1,zhangzijie,jia0liang,chenqi317,liu-wei,LiuXinxin23,fullt,LiWei79,songkai111,zhangyuxiang0119,demoauguste,llimwang,gubaocheng设为评审人
此处折叠了98条消息 查看更多
7月8日 添加了label:approved
7月8日 添加了label:lgtm
7月8日 关闭了关联的issue
7月8日 合入了pull request
描述
新增社区任务 Polar 算子(任务编号 04-5),落在
experimental/math/polar/。polar(input, angle) = input · (cos(angle) + i·sin(angle)):输入input/angle为 fp32,输出out为 complex64,≤8 维,支持 input 与 angle 的 numpy 广播。kernel 单算子内Cos/Sin → Mul×2 → Gather交织成 complex64(同 shape elementwise),广播在 aclnn L2 层经Contiguous → BroadcastTo → l0::Polar → ViewCopy完成,集成约定对标 ops-math experimental/math 的 addcdiv/floor。变更范围限于新增的experimental/math/polar/目录,不影响存量算子。关联的Issue
[Requirement|需求建议]: Polar 算子开发(社区任务 04-5) — https://gitcode.com/cann/ops-math/issues/1647
测试
官方 AscendOpTest 50 个验收用例全部 PASS,覆盖同 shape 小/大(含
[16384,16384,2]同 shape)、低维→高维广播、标量广播、双向多轴广播、高维非对齐等。complex64 精度阈值在用例中显式配置(compare_complex为纯绝对差、default_acc无 complex64 默认键):大幅值用例[0.001, 0.001],小幅值用例[0.0001, 0.0001]。文档更新
随交付提供设计文档(已通过华为评审)、自测报告、测试步骤指导文档。
类型标签