已合并
【CANN开源开放社区任务】【社区任务】AscendC实现Polar算子贡献 #2923
bububu创建于 5月23日
【CANN开源开放社区任务】【社区任务】AscendC实现Polar算子贡献 #2923
已合并
bububu创建于 5月23日
bububu
5月23日

描述

新增社区任务 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]。

文档更新

随交付提供设计文档(已通过华为评审)、自测报告、测试步骤指导文档。

类型标签

likedislike
Pull Request已成功合入, 合并人@CANN-robot
(感谢 bububu 的贡献)
Bbububu
5月23日 创建了 pull request,commit e0ed3384
Bbububu
5月23日 关联了issue:[Requirement|需求建议]: 【社区任务】Polar 算子开发交付(任务编号 04-5)
CANN-robotCANN-robot成员
5月23日 添加了label:stat/needs-squash
CANN-robot
CANN-robot成员
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 /approve or /lgtm
  • Commenting /approve implies 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. 👍

likedislike
CANN-robotCANN-robot成员
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条消息 查看更多
CANN-robotCANN-robot成员
7月8日 添加了label:approved
sunday成员
7月8日 评论:

/lgtm
/approve

likedislike
CANN-robotCANN-robot成员
7月8日 添加了label:lgtm
CANN-robotCANN-robot成员
7月8日 关闭了关联的issue
CANN-robotCANN-robot成员
7月8日 合入了pull request