| 文件 | 最后提交记录 | 最后更新时间 |
|---|---|---|
fix(pre-commit): 全仓代码规范整改——attention 2/4 Co-authored-by: gitcode_lijd<lijiandong20@huawei.com> # message auto-generated for no-merge-commit merge: !13595 merge moe into master fix(pre-commit): 全仓代码规范整改——attention 2/4 Created-by: gitcode_lijd Commit-by: gitcode_lijd Merged-by: cann-robot Description: 关联Issue https://gitcode.com/cann/ops-transformer/issues/5939 ## 描述 全仓代码规范整改系列——attention 拆分 **2/4**(第 2 批 26 个算子目录:fused_floyd_attention ~ mixed_quant_sparse_flash_mla,按目录字母序均分)。基于仓库 pre-commit 门禁对存量代码做一次性规范收敛: - clang-format 按 .clang-format 统一格式(列宽 120、指针左对齐 T* p、引用对齐 T& r 等) - 行尾空白、文件末尾换行修复 - 规模:735 个文件,+27423/-26835 行,纯格式化改动语义等价,无逻辑变更 - op_graph/*_proto.h、op_host/*_def.cpp、op_api/aclnn*.h 等接口文件及 OWNERS 不在本 PR 改动范围 ## 关联的Issue https://gitcode.com/cann/ops-transformer/issues/5939(全仓整改总跟踪) ## 测试 - pre-commit 全部钩子本地通过 - CI 流水线(compile/UT)验证 See merge request: cann/ops-transformer!13595 | 19 天前 | |
fix(pre-commit): 全仓代码规范整改——接口文件(proto/def/aclnn*.h) Co-authored-by: gitcode_lijd<lijiandong20@huawei.com> # message auto-generated for no-merge-commit merge: !13594 merge ci into master fix(pre-commit): 全仓代码规范整改——接口文件(proto/def/aclnn*.h) Created-by: gitcode_lijd Commit-by: gitcode_lijd Merged-by: cann-robot Description: 关联Issue https://gitcode.com/cann/ops-transformer/issues/5939 ## 描述 全仓代码规范整改系列(本 PR 含两笔独立提交,合计 145 个文件,+1405/-1730;均为头注释/格式类改动,语义等价,无 API 签名、宏、注册结构的实质修改。合入时建议 squash 为单笔): ### 1. 版权头存量修复(ee3ad6013,22 个文件,+4/-100) - 修复重复版权头: moe/moe_init_routing_v4 下 5 个 CMakeLists.txt(历史插入式修复导致单文件两段版权块,第二块残留 in in compliance 旧句式)、moe/moe_token_unpermute_with_ep_grad/tests/ut/op_kernel/CMakeLists.txt(注释正文后悬挂第二个版权块) - 修复双头堆叠:attention/block_sparse_attention/op_kernel/attn_infra/epilogue/block/mxfp4_vf 15 个 vf_*.h(删除独立旧式 "All rights reserved" 头块,保留 CANN 标准头) - 修复旧式许可证头:examples/attention/flash_attn/L0_minimal/ascend_ops/__init__.py("This file is a part of the CANN Open Software" 旧句式,替换为与同目录 ops.py 逐字节一致的标准头) - 全部为头注释删除/替换,OAT 本地验证 22/22 Passed ### 2. 接口文件 clang-format 整改(e1d1fe5b9,123 个文件,+1401/-1630) - 范围(四类接口文件):op_graph/*_proto.h(11)、op_host/*_def.cpp(19)、op_api/aclnn*.{h,cpp}(92)、CMakeLists.txt(1),即 103 .h + 19 .cpp + 1 CMakeLists.txt - clang-format 按 .clang-format 统一格式(列宽 120、指针左对齐 T* p、引用对齐 T& r 等);行尾空白、文件末尾换行、namespace 尾注释空格统一 - 等价性校验:106 个文件去除空白后与基线逐字节全等;17 个文件含超长 #warning / __attribute__((deprecated(...))) 字符串,按列宽拆分为相邻字符串字面量拼接(编译期等价)及长声明换行,语义无变化 ## 关联的Issue https://gitcode.com/cann/ops-transformer/issues/5939(全仓整改总跟踪) ## 测试 - pre-commit 全部钩子本地通过(OAT 22/22 Passed) - 接口文件改动经去空白等价性校验(106 全等 + 17 字符串拼接等价) - CI 流水线(compile/UT)验证 See merge request: cann/ops-transformer!13594 | 18 天前 | |
fix(pre-commit): 全仓代码规范整改——attention 2/4 Co-authored-by: gitcode_lijd<lijiandong20@huawei.com> # message auto-generated for no-merge-commit merge: !13595 merge moe into master fix(pre-commit): 全仓代码规范整改——attention 2/4 Created-by: gitcode_lijd Commit-by: gitcode_lijd Merged-by: cann-robot Description: 关联Issue https://gitcode.com/cann/ops-transformer/issues/5939 ## 描述 全仓代码规范整改系列——attention 拆分 **2/4**(第 2 批 26 个算子目录:fused_floyd_attention ~ mixed_quant_sparse_flash_mla,按目录字母序均分)。基于仓库 pre-commit 门禁对存量代码做一次性规范收敛: - clang-format 按 .clang-format 统一格式(列宽 120、指针左对齐 T* p、引用对齐 T& r 等) - 行尾空白、文件末尾换行修复 - 规模:735 个文件,+27423/-26835 行,纯格式化改动语义等价,无逻辑变更 - op_graph/*_proto.h、op_host/*_def.cpp、op_api/aclnn*.h 等接口文件及 OWNERS 不在本 PR 改动范围 ## 关联的Issue https://gitcode.com/cann/ops-transformer/issues/5939(全仓整改总跟踪) ## 测试 - pre-commit 全部钩子本地通过 - CI 流水线(compile/UT)验证 See merge request: cann/ops-transformer!13595 | 19 天前 | |
fix(pre-commit): 全仓代码规范整改——接口文件(proto/def/aclnn*.h) Co-authored-by: gitcode_lijd<lijiandong20@huawei.com> # message auto-generated for no-merge-commit merge: !13594 merge ci into master fix(pre-commit): 全仓代码规范整改——接口文件(proto/def/aclnn*.h) Created-by: gitcode_lijd Commit-by: gitcode_lijd Merged-by: cann-robot Description: 关联Issue https://gitcode.com/cann/ops-transformer/issues/5939 ## 描述 全仓代码规范整改系列(本 PR 含两笔独立提交,合计 145 个文件,+1405/-1730;均为头注释/格式类改动,语义等价,无 API 签名、宏、注册结构的实质修改。合入时建议 squash 为单笔): ### 1. 版权头存量修复(ee3ad6013,22 个文件,+4/-100) - 修复重复版权头: moe/moe_init_routing_v4 下 5 个 CMakeLists.txt(历史插入式修复导致单文件两段版权块,第二块残留 in in compliance 旧句式)、moe/moe_token_unpermute_with_ep_grad/tests/ut/op_kernel/CMakeLists.txt(注释正文后悬挂第二个版权块) - 修复双头堆叠:attention/block_sparse_attention/op_kernel/attn_infra/epilogue/block/mxfp4_vf 15 个 vf_*.h(删除独立旧式 "All rights reserved" 头块,保留 CANN 标准头) - 修复旧式许可证头:examples/attention/flash_attn/L0_minimal/ascend_ops/__init__.py("This file is a part of the CANN Open Software" 旧句式,替换为与同目录 ops.py 逐字节一致的标准头) - 全部为头注释删除/替换,OAT 本地验证 22/22 Passed ### 2. 接口文件 clang-format 整改(e1d1fe5b9,123 个文件,+1401/-1630) - 范围(四类接口文件):op_graph/*_proto.h(11)、op_host/*_def.cpp(19)、op_api/aclnn*.{h,cpp}(92)、CMakeLists.txt(1),即 103 .h + 19 .cpp + 1 CMakeLists.txt - clang-format 按 .clang-format 统一格式(列宽 120、指针左对齐 T* p、引用对齐 T& r 等);行尾空白、文件末尾换行、namespace 尾注释空格统一 - 等价性校验:106 个文件去除空白后与基线逐字节全等;17 个文件含超长 #warning / __attribute__((deprecated(...))) 字符串,按列宽拆分为相邻字符串字面量拼接(编译期等价)及长声明换行,语义无变化 ## 关联的Issue https://gitcode.com/cann/ops-transformer/issues/5939(全仓整改总跟踪) ## 测试 - pre-commit 全部钩子本地通过(OAT 22/22 Passed) - 接口文件改动经去空白等价性校验(106 全等 + 17 字符串拼接等价) - CI 流水线(compile/UT)验证 See merge request: cann/ops-transformer!13594 | 18 天前 |