| Files | Last commit | Last update |
|---|---|---|
feat(pypto_pro):Enhance synchronization support and validation Co-authored-by: gcw_bTlukKC6<xuxinlei1@huawei.com> # message auto-generated for no-merge-commit merge: !5754 merge my_new_branch into master feat(pypto_pro):Enhance synchronization support and validation Created-by: gcw_bTlukKC6 Commit-by: gcw_bTlukKC6 Merged-by: cann-robot Description: PR 应该避免没有描述信息,描述信息的最重要的作用是描述修改意图,应该清晰明了。例如:标题中包含了 fix 标签,如果没有描述信息,就需要Review人员猜测PR具体修复了哪些内容,或者怀疑修改的必要性。如果PR和特定的Issue相关,可以单独包含一行 Related Issue: 放到描述信息最后。 下面是一个典型的PR描述信息: The origin issue template brings too many noise, it's not suitable for git message. eg: comments are not removed, labels are redundant as the PR tile already contains the tag. The guide gives a clear suggestion on how to write the PR body. Related Issue: #1234,#5678 更多描述信息见:[Commit Message 规范](../docs/zh/contribute/pull-request.md#commit-message) See merge request: cann/pypto!5754 | 2 months ago | |
fix(Operation): clean up implementation and magic numbers | 2 months ago | |
fix(pass): Exclude graph-merge attrs from COE hash to fix conv compile error Co-authored-by: Catherie<mayuan33@huawei.com> # message auto-generated for no-merge-commit merge: !5793 merge fix/coe-hash-exclude-merge-attrs into master fix(pass): Exclude graph-merge attrs from COE hash to fix conv compile error Created-by: Catherie Commit-by: Catherie Merged-by: cann-robot Description: ## 问题现象 Conv 算子(conv1d_dynamic_kernel,A5/DAV_3510 平台)编译报错: ErrCode: FC6202! ConvExpandFuncError::EXPANDFUNC_TENSOR_ATTR_GET_FAILED: L1CopyInConv op should have CopyOpAttribute(op_infer_shape_impl.cpp:1120)。 ## 根因分析 1. L1CopyInReuseMerge 等合图 pass 在合并前会为每个子图的所有 op 标注合图组属性:l1_reuse_hashOrder/cube_merge_hashOrder/vec_merge_hashOrder 及对应 subgraphCount,值为 func<magic>_<order>。 2. L1 复用按 GM 输入特征(而非同构组)合并子图,合并后同一子图内会出现两个语义完全相同的 TRANS_FORMAT_L1 生产者,仅合图标注属性不同。 3. COE(CommonOperationEliminateUtils)计算生产者组 hash 时通过 op->DumpAttr() 把全部属性计入 hash,导致这两个等价生产者组 hash 不一致、无法去重。 4. 残留的重复 TRANS_FORMAT_L1 使 GenerateMoveOp::CollapseTransFormatL1Consumer 因 consumer 数 != 1 而放弃合并,L1_COPY_IN_CONV 未被设置 CopyOpAttribute,InferShape 断言失败。 ## 修复方案 - 新增 CommonOperationEliminateUtils::DumpAttr(const Operation&):序列化 op 属性时排除 6 个合图标注属性(l1Reuse/cubeMerge/vecMerge 的 hashOrder + subgraphCount),hash 计算不再受合图簿记标注影响。 - 这些属性是合图 pass 的合并组簿记信息(用于按组配置寻址与泳道图 profiling),不参与计算语义,等价生产者组排除后可正确去重;被保留的 op 仍携带一份该属性,不影响上述用途。 - reduce_copy_pre_subgraph_id 等语义敏感属性仍参与 hash(有既有 UT 约束)。 ## 验证 - 新增回归 UT CommonOperationEliminateTest.EliminateDupOpsWithDifferentGraphMergeHashOrder:两个等价 ABS 生产者仅合图标注不同,修复后正确去重(op 数 3→2)。 - 全量相关 UT 通过:CommonOperationEliminateTest 20、L1CopyInReuseTest、NBufferMergeTest、ReduceCopyTest、GenerateMoveOpPassTest 等共 125 个用例全部 PASS。 - 端到端验证:Conv_L0_basic 用例(xrunfk.py -s=11 -e=11)修复前 ERROR(上述断言),修复后 PASS,双/三精度比对均达标(mare 0.00037)。 See merge request: cann/pypto!5793 | 2 months ago | |
Initial commit | 11 months ago |
| Files | Last commit | Last update |
|---|---|---|
| 2 months ago | ||
| 2 months ago | ||
| 2 months ago | ||
| 11 months ago |