| Files | Last commit | Last update |
|---|---|---|
refactor(flash_attn): 归并 fa_tiling_shape 到 common 层 fia_tiling_shape Co-authored-by: PerrySkywalker<wangmingkang1@huawei.com> # message auto-generated for no-merge-commit merge: !9637 merge refactor/fa_tiling_shape_to_common into master refactor(flash_attn): 归并 fa_tiling_shape 到 common 层 fia_tiling_shape Created-by: PerrySkywalker Commit-by: PerrySkywalker Merged-by: cann-robot Description: ## 修改内容 - 将 flash_attn 私有的 FaLayout/FaAxis/FaTilingShape/FaTilingShapeCompare 与 common 层 fia_tiling_shape 归一,消除重复实现 - common 层 FiaLayout 枚举新增 PA_BBND/PA_BNBD/PA_NZ/LSE_BNS/LSE_NT 五个 flash_attn 专属 layout - FiaTilingShape 新增 GetShapeBlockNum/CheckHasShapeBlockNum 方法 - fa_tiling_info.h 改为 using 别名指向 Fia* 类型,删除重复枚举和函数声明 - 删除 fa_tiling_shape.cpp/h 和已空的 fa_tiling_info.cpp(-642 行) - fa_adjust_sinner_souter.h LAYOUT_* 常量对齐 FiaLayout 枚举值 Fixes #4152 ## 测试 - [x] pre-commit 全部通过 - [x] ophost_transformer_tiling_obj 编译通过 - [x] op_host_aclnnInner 编译通过 - [x] 全量编译无 error See merge request: cann/ops-transformer!9637 | 3 months ago | |
fix(fia): 移除 fused_infer_attention_score.cpp 冗余的 tilingkey 头文件包含 && arch38 add fixShiftVal Co-authored-by: leiqingji<leiqingji@h-partners.com> # message auto-generated for no-merge-commit merge: !10317 merge fix/fia-remove-redundant-tilingkey-include into master fix(fia): 移除 fused_infer_attention_score.cpp 冗余的 tilingkey 头文件包含 && arch38 add fixShiftVal Created-by: leiqingji Commit-by: leiqingji Merged-by: cann-robot Description: ## 描述 fused_infer_attention_score.cpp 中 #include "arch22/fused_infer_attention_score_tilingkey.h" 为冗余包含,该头文件已在 arch22/fused_infer_attention_score_v3.cpp 中被包含,而本文件在第48行已通过 #include "arch22/fused_infer_attention_score_v3.cpp" 间接引入,导致重复 include。 ## 改动 - attention/fused_infer_attention_score/op_kernel/fused_infer_attention_score.cpp: 移除冗余的 #include "arch22/fused_infer_attention_score_tilingkey.h" - tilingkey 头文件由 arch22/fused_infer_attention_score_v3.cpp 正常包含,不影响原有编译与行为 ## 关联的Issue #4305 ## 测试 - 移除冗余 include,不改变任何编译产物与运行逻辑 - 原有行为完全不受影响 ## 类型标签 - [ ] 🐛 Bug 修复 - [ ] ✨ 新特性 - [ ] ⚡ 性能优化 - [ ] ♻️ 重构 - [ ] 🧪 测试 - [ ] 📦 构建/CI - [ ] 🔧 配置变更 - [ ] 📝 文档更新 - [ ] ⬆️ 依赖升级 - [ ] 🔒 安全修复 - [x] 🧹 代码清理 - [ ] ❓ 其他,请描述: See merge request: cann/ops-transformer!10317 | 2 months ago | |
style(attention): 应用 pre-commit clang-format 格式化 Co-authored-by: huang-chuhong<huangchuhong1@h-partners.com> # message auto-generated for no-merge-commit merge: !9087 merge style/precommit-clang-format-attention into master style(attention): 应用 pre-commit clang-format 格式化 Created-by: huang-chuhong Commit-by: huang-chuhong Merged-by: cann-robot Description: ## 描述 对 attention/common 目录执行 pre-commit clang-format 统一格式化,覆盖 184 个文件,不涉及任何功能逻辑变更。 ## 改动 - 折行、大括号位置、指针对齐、 } else { 等格式调整 - #include 排序、宏续行符 \ 重排 - const_def.h 等文件 namespace 闭合注释修正(clang-tidy) - arch35/38 util_regbase.h 的 using 声明顺序重排(语义等价) - fia_tiling_shape.cpp 字符串字面量拆分(拼接后内容相同) ## 逻辑一致性 通过「去注释 → 去 #include → 去行续行符 → 去全部空白」三层归一化比对,184 个文件均无功能性改动,无数值/运算符/标识符变化。 ## 关联的Issue #3913 ## 测试 - 格式化前后行为一致,不传新参数时原有行为不受影响 - 建议跑一次 UT 编译验证 #include 重排无自包含问题 ## 类型标签 - [ ] 🐛 Bug 修复 - [ ] ✨ 新特性 - [ ] ⚡ 性能优化 - [ ] ♻️ 重构 - [ ] 🧪 测试 - [ ] 📦 构建/CI - [ ] 🔧 配置变更 - [ ] 📝 文档更新 - [ ] ⬆️ 依赖升级 - [ ] 🔒 安全修复 - [x] 🧹 代码清理 - [ ] ❓ 其他,请描述: See merge request: cann/ops-transformer!9087 | 3 months ago |
| Files | Last commit | Last update |
|---|---|---|
| 3 months ago | ||
| 2 months ago | ||
| 3 months ago |