已关闭
[Bug-Report|缺陷反馈]: 部分迁移算子InferShape不支持unknown shape/rank及混合动态shape场景 #2909
xuejinghui创建于 10 天前关闭于 5 天前
10 天前 添加了label:bug-report
xuejinghui
10 天前 评论:
10 天前 评论:
/assign


10 天前 将 xuejinghui 设为负责人
10 天前 修改了issue 的描述
5 天前 关闭了 issue
5 天前 添加了label:resolved
Thanks for sending an issue! Please fill in the following template to help quickly solve your problem.
Describe the current behavior / 问题描述
迁移的 9 个算子(MatrixDiagPart/SparseReshape/Trilu/CosineSimilarity/ProdForceSeA/ProdVirialSeA/SparseBincount/Trace/StrideAdd)的 InferShape 在 unknown rank(-2)/ unknown dim(-1)输入下存在校验误拦截或推导错误:维度数校验未放行 unknown rank;逐维一致性/广播推导对 -1 维误报 mismatch 或产生错误结果;ProdForceSeA 在任一输入 unknown shape 时整体输出 {-1,-1,-1},丢失已知坐标维度信息;Trace 等算子在 unknown rank 时未正确置 unknown rank。
Environment / 环境信息
硬件:Ascend950;软件:CANN 9.2.0,GE 图模式动态 shape 场景(unknown rank 以 -2 表示,unknown dim 以 -1 表示)。
Steps to reproduce the issue / 重现步骤
Describe the expected behavior / 预期结果
Related log / screenshot / 日志 / 截图
典型报错:shape 一致性校验对 -1 维误报 mismatch,InferShape 返回 4294967295(GRAPH_FAILED)。
Special notes for this issue / 备注
适配及 UT 已在 InferShape 分支完成(其中 Trace 已另行适配、StrideAdd 已在 master 废弃),含全 -1/全 -2 及混合动态 shape 用例,可关联本 issue。