Merged
fix(softsign): 支持动态高维输入 #11207
yulianjieAdd on Sep 24
fix(softsign): 支持动态高维输入 #11207
Merged
Merged fromlianjieyu/ops-nnfix_softsign_dynamic_rank9intocann/ops-nnmaster
Pull Request has been successfully merged by CANN-robot.
(Thank you for yulianjie's contribution.)Sep 24 Added label: cann-cla/yes
CANN-robot
Sep 24 Comments:
Sep 24 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 |
|---|---|---|
| activation | ✅ 王星, 陈琦 (2/2) | ✅ 王星 (1/1) |
💡 Tip:
- Committer can comment
/approveor/lgtm- Commenting
/approveimplies both code review (lgtm) and intent to merge (approve)


CANN-robot
Sep 24 Comments:
Sep 24 Comments:
Sep 24 Set zengjuan,u010470851,chaotang233,kevin_huang1234,crystalhu,yangyang016,fanqirui,wangrui_,renruhai,su-yueming,zhajianqing123,yourealize,chenqi317,wang-xing001,liubo75,tangweiwei2,chenxingyu18,liujie12345678,pingchuantang,Chen_HaoWen,qianzehong as approver
Sep 24 Set zengjuan,u010470851,chaotang233,kevin_huang1234,crystalhu,yangyang016,fanqirui,wangrui_,renruhai,su-yueming,zhajianqing123,yourealize,chenqi317,wang-xing001,liubo75,tangweiwei2,chenxingyu18,liujie12345678,pingchuantang,Chen_HaoWen,qianzehong as approver
56 messages are collapsed here。 See more
Sep 28 Added label: ci-pipeline-running
Sep 28 Removed label: ci-pipeline-running
Sep 28 Added label: ci-pipeline-passed
Sep 28 Closed associated issue
Sep 28 Merged pull request
描述
Softsign 在 Ascend 950 动态 Shape / 动态 Rank 场景下,运行时具体化为 9 维 Tensor 时会在
SoftsignTilingFunc被MAX_INPUT_RANK = 8提前拒绝。Softsign 是纯逐元素算子,后续公共
ElewiseBaseTiling会把 StorageShape 的全部维度连乘为一维总元素数dim0,Kernel 按连续内存线性处理,不依赖各轴语义。因此该 Host Tiling rank 限制会阻断本可正常执行的动态高维输入。本 PR:
inputRank > 8的拦截;MAX_INPUT_RANK常量;[-2]、标量和空 Tensor 的既有处理逻辑;关联的Issue
关联 Issue:#6218
测试
测试环境:Ascend950PR_9579,TTK 3.0.0,CANN 9.2.0。
.o完整;.o各包含 1 个子 Kernel;.oSHA256 一致。使用隔离 vendor
softsign_rank9_test_nn,执行-c=false -d=true:[-1] × 8[2] × 8[-1] × 9[2] × 9[-2][2] × 8[-2][2] × 9结果:
4 PASS / 0 FAIL / 0 SKIP,四条均为DYN_GOLD: PASS。运行日志确认custom_op_file_path、Tiling SO、Kernel.o和实际 Kernel launch 均来自本次隔离 vendor。文档更新
无。本次仅移除动态执行路径中的冗余 Host Tiling rank 限制,不修改 Softsign 数学语义和接口定义。
类型标签
AI/Agent生成声明