Closed
[Bug-Report|缺陷反馈]: Softsign动态9维输入被Host Tiling错误拦截 #6218
yulianjieAdd on Sep 24Closed at Sep 28
Sep 24 Added label: bug-report
Sep 24 Associated pull request
Sep 24 Assign lianjieyu as responsible person
Sep 28 Close issue
Sep 28 Added label: resolved
Describe the current behavior / 问题描述 (Mandatory / 必填)
Softsign 在 Ascend 950 动态 Shape 或动态 Rank 场景中,当运行时具体 Shape 为 9 维时,会在 Host Tiling 阶段被固定的
MAX_INPUT_RANK = 8拦截:Softsign 是纯逐元素算子,后续公共
ElewiseBaseTiling会将 StorageShape 的各维连乘为一维总元素数dim0,Kernel 按连续内存线性处理,不依赖具体轴语义。当前 rank 检查在公共 Elewise Tiling 之前返回,阻断了本可正确执行的动态高维输入。Environment Information / 环境信息 (Mandatory / 必填)
Steps to reproduce the issue / 重现步骤 (Mandatory / 必填)
[-1] × 9,运行时具体 Shape[2] × 9。[-2],运行时具体 Shape[2] × 9。python3 -m ttk geir -i softsign_dynamic_rank_geir.csv \ -c=false -d=true --compare stat_rel_err \ --pc 1 --proc-no-reuse --seed 42 --device-whitelist 0SoftsignTilingFunc返回GRAPH_FAILED;对应8D control 正常 PASS。Describe the expected behavior / 预期结果 (Mandatory / 必填)
动态 Shape 和动态 Rank 具体化为9D时,应进入公共
ElewiseBaseTiling,由其把多维 Shape 合并为一维总元素数并正常执行 Kernel;输出 Shape、dtype 与输入保持一致,数值通过 Golden 比对。移除 Host Tiling 的固定 rank≤8 检查后,以下四条用例应全部通过:
[-1] × 8[2] × 8[-1] × 9[2] × 9[-2][2] × 8[-2][2] × 9Related log / screenshot / 日志 / 截图 (Mandatory / 必填)
修改前:
修改后隔离包验证:
四条用例均为
DYN_GOLD: PASS。日志确认实际加载隔离 vendorsoftsign_rank9_test_nn,并实际 launch 本次构建的 Softsign Kernel。Special notes for this issue/备注 (Optional / 选填)