已关闭
[Bug-Report|缺陷反馈]: Conv算子编译报错 L1CopyInConv op should have CopyOpAttribute #3170
gravel1997创建于 8月31日关闭于 9月24日
gravel1997
8月31日 评论:
8月31日 评论:
8月31日 修改了issue 的描述
8月31日 将 Catherie 设为负责人
8月31日 关联了pull request:fix(pass): Exclude graph-merge attrs from COE hash to fix conv compile error
8月31日 关联了pull request:fix(pass): Exclude graph-merge attrs from COE hash to fix conv compile error
9月3日 issue类型由 任务 改变为 缺陷
9月3日 添加了label:Operations
lidongsheng
9月4日 评论:
9月4日 评论:
问题处理后请及时关闭 @Catherie


9月24日 issue状态由 待办的 改变为 已解决
9月24日 关闭了 issue
9月24日 添加了label:resolved
5 天前 添加了label:Passes
Describe the current behavior / 问题描述 (Mandatory / 必填)
Conv 算子(conv1d_dynamic_kernel,A5/Ascend950PR 平台)编译失败:
根因链(已通过加日志实跑定位,非代码猜测):
L1CopyInReuseMerge等合图 pass 在合并前为每个子图的所有 op 标注合图组属性(l1_reuse_hashOrder/cube_merge_hashOrder/vec_merge_hashOrder及subgraphCount,值为func<magic>_<order>)。op->DumpAttr()把全部属性计入 hash,导致等价生产者组 hash 不一致、无法去重(本例 390 次 L1 合并中有 4 次跨组,产生 2 个混合子图、2 个残留重复 TF)。GenerateMoveOp::CollapseTransFormatL1Consumer因 consumer 数 != 1 放弃合并,L1_COPY_IN_CONV 未被设置 CopyOpAttribute,L1CopyInConvInferFunc(op_infer_shape_impl.cpp:1120)断言失败。Environment / 环境信息 (Mandatory / 必填)
Steps to reproduce the issue / 重现步骤 (Mandatory / 必填)
Describe the expected behavior / 预期结果 (Mandatory / 必填)
COE 正确去重仅合图标注不同的等价 TRANS_FORMAT_L1 生产者组,
CollapseTransFormatL1Consumer正常合并并设置 CopyOpAttribute,Conv 算子编译通过且精度达标。Related log / screenshot / 日志 / 截图 (Mandatory / 必填)
关键日志证据(ASCEND_GLOBAL_LOG_LEVEL=1):
CollapseTransFormatL1Consumer bail: op[10528] output Tensor[396] has 2 consumers: TRANS_FORMAT_L1[10529]{sg180} TRANS_FORMAT_L1[14651]{sg180},其中 TF[10529] l1_reuse_hashOrder=func5_1/count288,TF[14651] func5_0/count192Special notes for this issue/备注 (Optional / 选填)
修复 PR:https://gitcode.com/cann/pypto/merge_requests/5793 (COE hash 排除 6 个合图标注属性)
验证:UT 125 个(含新增回归 UT)+ E2E Conv_L0_basic 用例 PASS(mare 0.00037)