Closed
[Bug-Report|缺陷反馈]: Conv算子编译报错 L1CopyInConv op should have CopyOpAttribute #3170
gravel1997Add on Aug 31Closed at Sep 24
gravel1997
Aug 31 Comments:
Aug 31 Comments:
Aug 31 Modify description of issue
Aug 31 Assign Catherie as responsible person
Aug 31 Associated pull request
Sep 3 changed custom category from 任务 to 缺陷
Sep 3 Added label: Operations
lidongsheng
Sep 4 Comments:
Sep 4 Comments:
问题处理后请及时关闭 @Catherie


Sep 24 changed custom state from 待办的 to 已解决
Sep 24 Close issue
Sep 24 Added label: resolved
5 days ago Added 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)