Closed
[Bug-Report|缺陷反馈]: UnionSparseGen InferShape UT整改与恢复 #8985
BartonFangAdd on  4 days agoClosed at  4 days ago
BartonFang
BartonFangCollaborators
4 days ago Create

Describe the current behavior / 问题描述 (Mandatory / 必填)

UnionSparseGen 的 InferShape UT 同时设置 NodeIoNum 和 IrInstanceNum,不符合 SDK 对两种构造方式互斥的约定。已有报告涉及可选输入槽位及空 batch 推导失败,需要统一整改测试构造并恢复覆盖。

Environment Information / 环境信息 (Mandatory / 必填)

已验证环境:CANN 9.2.0,CPU Host UT,默认及 --soc=ascend950 配置。原失败环境及完整日志未提供,已测环境未复现报告中的槽位覆盖行为。

Steps to reproduce the issue / 重现步骤 (Mandatory / 必填)

在移除前的代码上执行:

bash build.sh -u --ophost --opapi --opgraph --cov --ops=union_sparse_gen

增加 --soc=ascend950 验证另一配置。重点检查缺失 cuQ/cuKV、空 batch 和自动几何推导用例;上述命令是验证入口,不代表已复现原报告的失败。

Describe the expected behavior / 预期结果 (Mandatory / 必填)

统一可选输入实例构造,补回显式/自动几何推导、定长/变长、空输入及非法参数测试。默认和 ascend950 配置下,恢复的 UT 实际执行并通过。

暂时移除后,两种配置均实际执行并通过剩余 8 项 Host UT。相关 CI:流水线 #19947。原报告完整失败日志暂缺,后续整改补充验证日志。

Special notes for this issue/备注 (Optional / 选填)

关联 PR !14520:暂时移除两份 InferShape UT,生产实现不变。后续另提 PR 整改并恢复测试,验收后关闭本 issue。

likedislike
BartonFangBartonFangCollaborators
4 days ago Modify description of issue
BartonFangBartonFangCollaborators
4 days ago Change title to "[Bug-Report|缺陷反馈]: UnionSparseGen InferShape UT整改与恢复", originally titled "[UT] UnionSparseGen InferShape测试整改与恢复(关联 !14520)".
BartonFangBartonFangCollaborators
4 days ago Modify description of issue
yuning_chen
yuning_chenCollaborators
4 days ago Comments:

收到,本单已关联 PR #14520(作者 @bartonfang),按「已关联 PR 以 PR 提出者为准」指派给 PR 作者跟进。

建议 PR 合入时在本单回贴验证结论(复现命令 + 前后对比),便于回归核对。

补充:UnionSparseGen 的 InferShape UT 是临时移除,建议在本单里挂一个明确的补回时间点,别变成永久缺失。

likedislike
yuning_chenyuning_chenCollaborators
4 days ago Assign bartonfang as responsible person
yuning_chen
yuning_chenCollaborators
4 days ago Comments:

您好,问题已收到,当前 @bartonfang 正在处理中。

likedislike
BartonFang
BartonFangCollaborators
4 days ago Comments:

/close

likedislike
CANN-robotCANN-robotCollaborators
4 days ago changed custom state from 待办的 to 已完成
CANN-robotCANN-robotCollaborators
4 days ago Close issue
CANN-robotCANN-robotCollaborators
4 days ago Added label: resolved