| 文件 | 最后提交记录 | 最后更新时间 |
|---|---|---|
modified md files (The product filtering tag is added to the aclnn*.md files of the forech and norm classes) Co-authored-by: zhaozhoujun520<zhaozhoujun@huawei.com> # message auto-generated for no-merge-commit merge: !7858 merge master into master modified md files (The product filtering tag is added to the aclnn*.md files of the forech and norm classes) Created-by: gitee-duhuiping Commit-by: zhaozhoujun520 Merged-by: cann-robot Description: ## 描述 The product filtering tag is added to the aclnn*.md files of the forech and norm classes. ## 关联的Issue [#4263](https://gitcode.com/cann/ops-nn/issues/4263) ## 测试 Only involves updating the MD document description, does not involve testing. ## 文档更新 aclnn*.md ## 类型标签 <!-- [x] 表示选中 --> - [ ] Bug修复 - [ ] 新特性 - [ ] 性能优化 - [x] 文档更新 - [ ] 其他,请描述: ## AI/Agent生成声明 <!-- [x] 表示选中 --> - [ ] AI辅助编写 See merge request: cann/ops-nn!7858 | 1 个月前 | |
modified md files (The product filtering tag is added to the aclnn*.md files of the forech and norm classes) Co-authored-by: zhaozhoujun520<zhaozhoujun@huawei.com> # message auto-generated for no-merge-commit merge: !7858 merge master into master modified md files (The product filtering tag is added to the aclnn*.md files of the forech and norm classes) Created-by: gitee-duhuiping Commit-by: zhaozhoujun520 Merged-by: cann-robot Description: ## 描述 The product filtering tag is added to the aclnn*.md files of the forech and norm classes. ## 关联的Issue [#4263](https://gitcode.com/cann/ops-nn/issues/4263) ## 测试 Only involves updating the MD document description, does not involve testing. ## 文档更新 aclnn*.md ## 类型标签 <!-- [x] 表示选中 --> - [ ] Bug修复 - [ ] 新特性 - [ ] 性能优化 - [x] 文档更新 - [ ] 其他,请描述: ## AI/Agent生成声明 <!-- [x] 表示选中 --> - [ ] AI辅助编写 See merge request: cann/ops-nn!7858 | 1 个月前 | |
modified md files (The product filtering tag is added to the aclnn*.md files of the forech and norm classes) Co-authored-by: zhaozhoujun520<zhaozhoujun@huawei.com> # message auto-generated for no-merge-commit merge: !7858 merge master into master modified md files (The product filtering tag is added to the aclnn*.md files of the forech and norm classes) Created-by: gitee-duhuiping Commit-by: zhaozhoujun520 Merged-by: cann-robot Description: ## 描述 The product filtering tag is added to the aclnn*.md files of the forech and norm classes. ## 关联的Issue [#4263](https://gitcode.com/cann/ops-nn/issues/4263) ## 测试 Only involves updating the MD document description, does not involve testing. ## 文档更新 aclnn*.md ## 类型标签 <!-- [x] 表示选中 --> - [ ] Bug修复 - [ ] 新特性 - [ ] 性能优化 - [x] 文档更新 - [ ] 其他,请描述: ## AI/Agent生成声明 <!-- [x] 表示选中 --> - [ ] AI辅助编写 See merge request: cann/ops-nn!7858 | 1 个月前 | |
modified md files (The product filtering tag is added to the aclnn*.md files of the forech and norm classes) Co-authored-by: zhaozhoujun520<zhaozhoujun@huawei.com> # message auto-generated for no-merge-commit merge: !7858 merge master into master modified md files (The product filtering tag is added to the aclnn*.md files of the forech and norm classes) Created-by: gitee-duhuiping Commit-by: zhaozhoujun520 Merged-by: cann-robot Description: ## 描述 The product filtering tag is added to the aclnn*.md files of the forech and norm classes. ## 关联的Issue [#4263](https://gitcode.com/cann/ops-nn/issues/4263) ## 测试 Only involves updating the MD document description, does not involve testing. ## 文档更新 aclnn*.md ## 类型标签 <!-- [x] 表示选中 --> - [ ] Bug修复 - [ ] 新特性 - [ ] 性能优化 - [x] 文档更新 - [ ] 其他,请描述: ## AI/Agent生成声明 <!-- [x] 表示选中 --> - [ ] AI辅助编写 See merge request: cann/ops-nn!7858 | 1 个月前 | |
add cases Co-authored-by: zhaogrug<zhaohai16@h-partners.com> # message auto-generated for no-merge-commit merge: !8026 merge the_rest_of_cases into master add cases Created-by: zhaogrug Commit-by: zhaogrug Merged-by: cann-robot Description: ## 描述 新增仓内新版ttk用例 <!--在这里详细描述你的改动,包括改动的原因和所采取的方法。--> ## 关联的Issue [#4386](https://gitcode.com/cann/ops-nn/issues/4386) <!-- 如果这个PR是为了解决特定的Issue,请在这里提供Issue链接。例如:关联Issue #000--> ## 测试 冒烟测试,本地验证 <!--描述进行了哪些测试来验证你的改动。--> ## 文档更新 <!--如果这个PR包含文档的更新,请在这里指出。例如:更新了README.md文件。--> ## 类型标签 <!-- [x] 表示选中 --> - [ ] Bug修复 - [ ] 新特性 - [ ] 性能优化 - [ ] 文档更新 - [x] 其他,请描述:用例添加 ## AI/Agent生成声明 <!-- [x] 表示选中 --> - [ ] AI辅助编写 See merge request: cann/ops-nn!8026 | 1 个月前 | |
modified md files (The product filtering tag is added to the aclnn*.md files of the forech and norm classes) Co-authored-by: zhaozhoujun520<zhaozhoujun@huawei.com> # message auto-generated for no-merge-commit merge: !7858 merge master into master modified md files (The product filtering tag is added to the aclnn*.md files of the forech and norm classes) Created-by: gitee-duhuiping Commit-by: zhaozhoujun520 Merged-by: cann-robot Description: ## 描述 The product filtering tag is added to the aclnn*.md files of the forech and norm classes. ## 关联的Issue [#4263](https://gitcode.com/cann/ops-nn/issues/4263) ## 测试 Only involves updating the MD document description, does not involve testing. ## 文档更新 aclnn*.md ## 类型标签 <!-- [x] 表示选中 --> - [ ] Bug修复 - [ ] 新特性 - [ ] 性能优化 - [x] 文档更新 - [ ] 其他,请描述: ## AI/Agent生成声明 <!-- [x] 表示选中 --> - [ ] AI辅助编写 See merge request: cann/ops-nn!7858 | 1 个月前 | |
test: 新增AddLayerNormQuant算子aclnn调用测试示例 Co-authored-by: rk<wangpengbo26@huawei.com> # message auto-generated for no-merge-commit merge: !7978 merge alnq_test into master test: 新增AddLayerNormQuant算子aclnn调用测试示例 Created-by: wangpengbo26 Commit-by: rk Merged-by: cann-robot Description: ## 描述 为 AddLayerNormQuant 算子补充 aclnn 接口调用方式的测试示例。算子 README(norm/add_layer_norm_quant/README.md)调用说明中 aclnn 接口的样例代码列原为空("-"),仅有图模式(geir)测试示例,本 PR 填补 aclnn 调用示例的缺失。 新增文件 norm/add_layer_norm_quant/examples/test_aclnn_add_layer_norm_quant.cpp,内容包括: - 资源初始化(aclInit/aclrtSetDevice/aclrtCreateStream) - 构造输入与属性:x1/x2(shape {8,16},ACL_FLOAT)、gamma/beta/bias/s1/s2(shape {16},ACL_FLOAT);eps=1e-6、additionalOut=true、divMode=true、quantMode="static" - 两段式 aclnn 接口调用:aclnnAddLayerNormQuantGetWorkspaceSize 计算 workspace 并创建 executor,aclnnAddLayerNormQuant 执行计算 - 输出验证:将 y1/y2(ACL_INT8)、x/outScales1/outScales2(ACL_FLOAT)从 device 拷回 host 并打印 - 资源释放:销毁所有 aclTensor 并释放 device 内存 ## 关联的Issue - https://gitcode.com/cann/ops-nn/issues/4393 ## 测试 编译并运行 test_aclnn_add_layer_norm_quant.cpp,验证: - aclnnAddLayerNormQuantGetWorkspaceSize 返回 ACL_SUCCESS - aclnnAddLayerNormQuant 执行成功,aclrtSynchronizeStream 正常返回 - y1/y2/x/outScales1/outScales2 输出可正确拷回 host 并打印,无内存/资源泄漏 ## 文档更新 无。 ## 类型标签 <!-- [x] 表示选中 --> - [ ] Bug修复 - [x] 新特性 - [ ] 性能优化 - [ ] 文档更新 - [ ] 其他,请描述: ## AI/Agent生成声明 <!-- [x] 表示选中 --> - [ ] AI辅助编写 See merge request: cann/ops-nn!7978 | 1 个月前 | |
docs: fix errors in aclnn API examples Co-authored-by: Chen_HaoWen<chenhaowen12@huawei.com> # message auto-generated for no-merge-commit merge: !7883 merge docs-fix-md-20260723-master into master docs: fix errors in aclnn API examples Created-by: Chen_HaoWen Commit-by: Chen_HaoWen Merged-by: cann-robot Description: ## 描述 修正 master 分支中 aclnn API 文档及对应 examples 的文本错误,保证文档代码片段与示例源文件一致: - 修正 aclnnAddLayerNormQuantV2 日志中的 aclrtSetDevicefailed 和 Deviceto 拼写问题。 - 将 aclnnInplaceRenorm 调用失败日志中的接口名由 aclnnRenorm 修正为 aclnnInplaceRenorm。 - 修正 aclnnRmsNormQuant 示例中的接口名注释,并移除未使用的 aclScalar 描述。 - 同步更新 3 个文档文件和 3 个 examples 文件,不涉及算子功能逻辑变更。 ## 关联的Issue Closes #4287 ## 测试 - 已执行 git diff --check origin/master...HEAD,检查通过。 - 已定点检查 6 个目标文件,确认旧错误文本不再残留。 - 本次仅修改文档代码片段、日志字符串和注释,未运行算子构建或功能测试。 ## 文档更新 - norm/add_layer_norm_quant_v2/docs/aclnnAddLayerNormQuantV2.md - norm/add_layer_norm_quant_v2/examples/test_aclnn_add_layer_norm_quant_v2.cpp - norm/renorm/docs/aclnnRenorm&aclnnInplaceRenorm.md - norm/renorm/examples/test_aclnn_inplace_renorm.cpp - norm/rms_norm_quant/docs/aclnnRmsNormQuant.md - norm/rms_norm_quant/examples/test_aclnn_rms_norm_quant.cpp ## 类型标签 <!-- [x] 表示选中 --> - [ ] Bug修复 - [ ] 新特性 - [ ] 性能优化 - [x] 文档更新 - [ ] 其他,请描述: ## AI/Agent生成声明 <!-- [x] 表示选中 --> - [x] AI辅助编写 See merge request: cann/ops-nn!7883 | 1 个月前 | |
cleancode: norm 类算子代码去重 Co-authored-by: rk<wangpengbo26@huawei.com> # message auto-generated for no-merge-commit merge: !7977 merge cleancode8 into master cleancode: norm 类算子代码去重 Created-by: wangpengbo26 Commit-by: rk Merged-by: cann-robot Description: ## 描述 ops-nn/norm 系列 arch35 算子代码重复率治理(cleancode)。在**严格保持实现逻辑、计算顺序、内存分配顺序完全一致**前提下,通过抽取公共实现/分支尾上提/模板统一消除重复,覆盖 4 个算子: - **batch_norm_v3** - batch_norm_v3_regbase_common.h:TwoRowAddPartialMeanWithTail 复用已有 TwoRowAddPartialMean(移动定义、去前向声明) - 三个 infer 变体(continuous_a/small_a/small_ab1)的 Compute 统一为模板 helper InferComputeImpl<Self, T>,经 self.VFNormalize(...) 静态派发 - **rms_norm_grad**:rms_norm_grad_regbase_dgamma.h 抽取 ComputePreDgamma(EnQue/DeQue/取址/VFCalcPreDgamma/Free),3 处复用 - **add_rms_norm**:add_rms_norm_regbase_common.h 的 LoadForHandleRemainV1 三个 if-constexpr 分支公共尾上提 - **add_rms_norm_dynamic_quant**:add_rms_norm_dynamic_quant_regbase_common.h 抽取 VF 单元 ComputeYAndAbsMaxVF(归一化输出 + running abs-max),两处复用 ### 等价性说明 均为逐操作等价:函数体逐字节搬运,仅作用域/调用形式变化;if constexpr 下每个实例化指令流不变;寄存器声明位置变化不影响操作顺序与内存分配顺序。已用「去空白 md5 比对」确认无标识符级改动。 ## 关联的Issue - https://gitcode.com/cann/ops-nn/issues/4418 ## 测试 - 逐操作等价校验:内联还原 / token 级去空白 md5 比对,确认无标识符改动 - 950 上板编译 + 精度回归:pass ## 文档更新 无 ## 类型标签 - [x] 其他,请描述:代码重构(消除重复代码,降低 codecheck 重复率) ## AI/Agent生成声明 - [x] AI辅助编写 See merge request: cann/ops-nn!7977 | 1 个月前 | |
modified md files (The product filtering tag is added to the aclnn*.md files of the forech and norm classes) Co-authored-by: zhaozhoujun520<zhaozhoujun@huawei.com> # message auto-generated for no-merge-commit merge: !7858 merge master into master modified md files (The product filtering tag is added to the aclnn*.md files of the forech and norm classes) Created-by: gitee-duhuiping Commit-by: zhaozhoujun520 Merged-by: cann-robot Description: ## 描述 The product filtering tag is added to the aclnn*.md files of the forech and norm classes. ## 关联的Issue [#4263](https://gitcode.com/cann/ops-nn/issues/4263) ## 测试 Only involves updating the MD document description, does not involve testing. ## 文档更新 aclnn*.md ## 类型标签 <!-- [x] 表示选中 --> - [ ] Bug修复 - [ ] 新特性 - [ ] 性能优化 - [x] 文档更新 - [ ] 其他,请描述: ## AI/Agent生成声明 <!-- [x] 表示选中 --> - [ ] AI辅助编写 See merge request: cann/ops-nn!7858 | 1 个月前 | |
modified md files (The product filtering tag is added to the aclnn*.md files of the forech and norm classes) Co-authored-by: zhaozhoujun520<zhaozhoujun@huawei.com> # message auto-generated for no-merge-commit merge: !7858 merge master into master modified md files (The product filtering tag is added to the aclnn*.md files of the forech and norm classes) Created-by: gitee-duhuiping Commit-by: zhaozhoujun520 Merged-by: cann-robot Description: ## 描述 The product filtering tag is added to the aclnn*.md files of the forech and norm classes. ## 关联的Issue [#4263](https://gitcode.com/cann/ops-nn/issues/4263) ## 测试 Only involves updating the MD document description, does not involve testing. ## 文档更新 aclnn*.md ## 类型标签 <!-- [x] 表示选中 --> - [ ] Bug修复 - [ ] 新特性 - [ ] 性能优化 - [x] 文档更新 - [ ] 其他,请描述: ## AI/Agent生成声明 <!-- [x] 表示选中 --> - [ ] AI辅助编写 See merge request: cann/ops-nn!7858 | 1 个月前 | |
cleancode: norm 类算子代码去重 Co-authored-by: rk<wangpengbo26@huawei.com> # message auto-generated for no-merge-commit merge: !7977 merge cleancode8 into master cleancode: norm 类算子代码去重 Created-by: wangpengbo26 Commit-by: rk Merged-by: cann-robot Description: ## 描述 ops-nn/norm 系列 arch35 算子代码重复率治理(cleancode)。在**严格保持实现逻辑、计算顺序、内存分配顺序完全一致**前提下,通过抽取公共实现/分支尾上提/模板统一消除重复,覆盖 4 个算子: - **batch_norm_v3** - batch_norm_v3_regbase_common.h:TwoRowAddPartialMeanWithTail 复用已有 TwoRowAddPartialMean(移动定义、去前向声明) - 三个 infer 变体(continuous_a/small_a/small_ab1)的 Compute 统一为模板 helper InferComputeImpl<Self, T>,经 self.VFNormalize(...) 静态派发 - **rms_norm_grad**:rms_norm_grad_regbase_dgamma.h 抽取 ComputePreDgamma(EnQue/DeQue/取址/VFCalcPreDgamma/Free),3 处复用 - **add_rms_norm**:add_rms_norm_regbase_common.h 的 LoadForHandleRemainV1 三个 if-constexpr 分支公共尾上提 - **add_rms_norm_dynamic_quant**:add_rms_norm_dynamic_quant_regbase_common.h 抽取 VF 单元 ComputeYAndAbsMaxVF(归一化输出 + running abs-max),两处复用 ### 等价性说明 均为逐操作等价:函数体逐字节搬运,仅作用域/调用形式变化;if constexpr 下每个实例化指令流不变;寄存器声明位置变化不影响操作顺序与内存分配顺序。已用「去空白 md5 比对」确认无标识符级改动。 ## 关联的Issue - https://gitcode.com/cann/ops-nn/issues/4418 ## 测试 - 逐操作等价校验:内联还原 / token 级去空白 md5 比对,确认无标识符改动 - 950 上板编译 + 精度回归:pass ## 文档更新 无 ## 类型标签 - [x] 其他,请描述:代码重构(消除重复代码,降低 codecheck 重复率) ## AI/Agent生成声明 - [x] AI辅助编写 See merge request: cann/ops-nn!7977 | 1 个月前 | |
format cpp Co-authored-by: yang-di52<yangdi52@huawei.com> # message auto-generated for no-merge-commit merge: !6784 merge issue_fix into master format cpp Created-by: yang-di52 Commit-by: yang-di52 Merged-by: cann-robot Description: ## 描述 批量刷新cpp代码格式 ## 关联的Issue [#3791](https://gitcode.com/cann/ops-nn/issues/3791) ## 测试 <!--描述进行了哪些测试来验证你的改动。--> ## 文档更新 <!--如果这个PR包含文档的更新,请在这里指出。例如:更新了README.md文件。--> ## 类型标签 <!-- [x] 表示选中 --> - [ ] Bug修复 - [ ] 新特性 - [ ] 性能优化 - [ ] 文档更新 - [x] 其他,请描述:代码格式化 ## AI/Agent生成声明 <!-- [x] 表示选中 --> - [ ] AI辅助编写 See merge request: cann/ops-nn!6784 | 2 个月前 | |
modified md files (The product filtering tag is added to the aclnn*.md files of the forech and norm classes) Co-authored-by: zhaozhoujun520<zhaozhoujun@huawei.com> # message auto-generated for no-merge-commit merge: !7858 merge master into master modified md files (The product filtering tag is added to the aclnn*.md files of the forech and norm classes) Created-by: gitee-duhuiping Commit-by: zhaozhoujun520 Merged-by: cann-robot Description: ## 描述 The product filtering tag is added to the aclnn*.md files of the forech and norm classes. ## 关联的Issue [#4263](https://gitcode.com/cann/ops-nn/issues/4263) ## 测试 Only involves updating the MD document description, does not involve testing. ## 文档更新 aclnn*.md ## 类型标签 <!-- [x] 表示选中 --> - [ ] Bug修复 - [ ] 新特性 - [ ] 性能优化 - [x] 文档更新 - [ ] 其他,请描述: ## AI/Agent生成声明 <!-- [x] 表示选中 --> - [ ] AI辅助编写 See merge request: cann/ops-nn!7858 | 1 个月前 | |
modified md files (The product filtering tag is added to the aclnn*.md files of the forech and norm classes) Co-authored-by: zhaozhoujun520<zhaozhoujun@huawei.com> # message auto-generated for no-merge-commit merge: !7858 merge master into master modified md files (The product filtering tag is added to the aclnn*.md files of the forech and norm classes) Created-by: gitee-duhuiping Commit-by: zhaozhoujun520 Merged-by: cann-robot Description: ## 描述 The product filtering tag is added to the aclnn*.md files of the forech and norm classes. ## 关联的Issue [#4263](https://gitcode.com/cann/ops-nn/issues/4263) ## 测试 Only involves updating the MD document description, does not involve testing. ## 文档更新 aclnn*.md ## 类型标签 <!-- [x] 表示选中 --> - [ ] Bug修复 - [ ] 新特性 - [ ] 性能优化 - [x] 文档更新 - [ ] 其他,请描述: ## AI/Agent生成声明 <!-- [x] 表示选中 --> - [ ] AI辅助编写 See merge request: cann/ops-nn!7858 | 1 个月前 | |
fix: comment out dlog_setlevel calls in UT tests for target operators Co-authored-by: liangyuhua<liangyuhua4@huawei.com> # message auto-generated for no-merge-commit merge: !8042 merge fix/comment-out-dlog-setlevel into master fix: comment out dlog_setlevel calls in UT tests for target operators Created-by: liangyuhua Commit-by: liangyuhua Merged-by: cann-robot Description: ## 描述 删除 11 个目标算子 UT 测试文件中所有 dlog_setlevel 调用(含已注释的),避免 UT 运行时修改全局日志级别影响其他用例,同时清理无用注释代码。修复 batch_norm_grad_v3 中变量名 workspace_size_holer 拼写错误为 workspace_size_holder。 涉及的算子及文件: | 模块 | 算子 | 文件 | 删除数量 | |------|------|------|---------| | activation | ConfusionSoftmaxGrad | test_confusion_softmax_grad_tiling.cpp | 6 | | activation | LogSoftmaxGrad | test_log_softmax_grad_tiling.cpp | 14 | | activation | SoftmaxGrad | test_softmax_grad_tiling.cpp | 12 | | index | BroadcastGradientArgs | test_broadcast_gradient_args_tiling.cpp | 32 | | norm | BatchNorm | test_batch_norm_tiling.cpp | 3 | | norm | BatchNormGrad | test_batch_norm_grad_tiling.cpp | 48 | | norm | BatchNormGradV3 | test_batch_norm_grad_v3_tiling.cpp | 44 | | norm | LayerNorm | test_layer_norm_tiling.cpp | 2 | | norm | LayerNormV3 | test_layer_norm_v3_tiling.cpp | 8 | | norm | RmsNormDynamicMxQuant | test_rms_norm_dynamic_mx_quant_infershape.cpp | 2 | | norm | SyncBatchNormGatherStats | test_sync_batch_norm_gather_stats_tiling.cpp | 12 | 共计 11 个文件,删除 183 处 dlog_setlevel 调用。 额外修复: - batch_norm_grad_v3 文件中 46 处变量名 workspace_size_holer 拼写错误修正为 workspace_size_holder - layer_norm_v3 文件 license header 从旧格式更新为标准格式 注:RmsNormGrad、SoftmaxV2、LogSoftmaxV2 的 dlog_setlevel 删除已通过前置 PR 合入 master,本 PR 不再重复修改。 ## 关联的Issue #4396 ## 测试 - [x] pre-commit 全部通过(clang-format + OAT + codespell 等,11 个文件手动扫描确认) - [x] 仅删除 dlog_setlevel 调用及修复变量名拼写,不影响测试逻辑 ## 文档更新 无需更新文档 ## 类型标签 - [x] Bug修复 - [ ] 新特性 - [ ] 性能优化 - [ ] 文档更新 - [ ] 其他,请描述: ## AI/Agent生成声明 - [x] AI辅助编写 See merge request: cann/ops-nn!8042 | 1 个月前 | |
modified md files (The product filtering tag is added to the aclnn*.md files of the forech and norm classes) Co-authored-by: zhaozhoujun520<zhaozhoujun@huawei.com> # message auto-generated for no-merge-commit merge: !7858 merge master into master modified md files (The product filtering tag is added to the aclnn*.md files of the forech and norm classes) Created-by: gitee-duhuiping Commit-by: zhaozhoujun520 Merged-by: cann-robot Description: ## 描述 The product filtering tag is added to the aclnn*.md files of the forech and norm classes. ## 关联的Issue [#4263](https://gitcode.com/cann/ops-nn/issues/4263) ## 测试 Only involves updating the MD document description, does not involve testing. ## 文档更新 aclnn*.md ## 类型标签 <!-- [x] 表示选中 --> - [ ] Bug修复 - [ ] 新特性 - [ ] 性能优化 - [x] 文档更新 - [ ] 其他,请描述: ## AI/Agent生成声明 <!-- [x] 表示选中 --> - [ ] AI辅助编写 See merge request: cann/ops-nn!7858 | 1 个月前 | |
fix: comment out dlog_setlevel calls in UT tests for target operators Co-authored-by: liangyuhua<liangyuhua4@huawei.com> # message auto-generated for no-merge-commit merge: !8042 merge fix/comment-out-dlog-setlevel into master fix: comment out dlog_setlevel calls in UT tests for target operators Created-by: liangyuhua Commit-by: liangyuhua Merged-by: cann-robot Description: ## 描述 删除 11 个目标算子 UT 测试文件中所有 dlog_setlevel 调用(含已注释的),避免 UT 运行时修改全局日志级别影响其他用例,同时清理无用注释代码。修复 batch_norm_grad_v3 中变量名 workspace_size_holer 拼写错误为 workspace_size_holder。 涉及的算子及文件: | 模块 | 算子 | 文件 | 删除数量 | |------|------|------|---------| | activation | ConfusionSoftmaxGrad | test_confusion_softmax_grad_tiling.cpp | 6 | | activation | LogSoftmaxGrad | test_log_softmax_grad_tiling.cpp | 14 | | activation | SoftmaxGrad | test_softmax_grad_tiling.cpp | 12 | | index | BroadcastGradientArgs | test_broadcast_gradient_args_tiling.cpp | 32 | | norm | BatchNorm | test_batch_norm_tiling.cpp | 3 | | norm | BatchNormGrad | test_batch_norm_grad_tiling.cpp | 48 | | norm | BatchNormGradV3 | test_batch_norm_grad_v3_tiling.cpp | 44 | | norm | LayerNorm | test_layer_norm_tiling.cpp | 2 | | norm | LayerNormV3 | test_layer_norm_v3_tiling.cpp | 8 | | norm | RmsNormDynamicMxQuant | test_rms_norm_dynamic_mx_quant_infershape.cpp | 2 | | norm | SyncBatchNormGatherStats | test_sync_batch_norm_gather_stats_tiling.cpp | 12 | 共计 11 个文件,删除 183 处 dlog_setlevel 调用。 额外修复: - batch_norm_grad_v3 文件中 46 处变量名 workspace_size_holer 拼写错误修正为 workspace_size_holder - layer_norm_v3 文件 license header 从旧格式更新为标准格式 注:RmsNormGrad、SoftmaxV2、LogSoftmaxV2 的 dlog_setlevel 删除已通过前置 PR 合入 master,本 PR 不再重复修改。 ## 关联的Issue #4396 ## 测试 - [x] pre-commit 全部通过(clang-format + OAT + codespell 等,11 个文件手动扫描确认) - [x] 仅删除 dlog_setlevel 调用及修复变量名拼写,不影响测试逻辑 ## 文档更新 无需更新文档 ## 类型标签 - [x] Bug修复 - [ ] 新特性 - [ ] 性能优化 - [ ] 文档更新 - [ ] 其他,请描述: ## AI/Agent生成声明 - [x] AI辅助编写 See merge request: cann/ops-nn!8042 | 1 个月前 | |
add cases Co-authored-by: zhaogrug<zhaohai16@h-partners.com> # message auto-generated for no-merge-commit merge: !8026 merge the_rest_of_cases into master add cases Created-by: zhaogrug Commit-by: zhaogrug Merged-by: cann-robot Description: ## 描述 新增仓内新版ttk用例 <!--在这里详细描述你的改动,包括改动的原因和所采取的方法。--> ## 关联的Issue [#4386](https://gitcode.com/cann/ops-nn/issues/4386) <!-- 如果这个PR是为了解决特定的Issue,请在这里提供Issue链接。例如:关联Issue #000--> ## 测试 冒烟测试,本地验证 <!--描述进行了哪些测试来验证你的改动。--> ## 文档更新 <!--如果这个PR包含文档的更新,请在这里指出。例如:更新了README.md文件。--> ## 类型标签 <!-- [x] 表示选中 --> - [ ] Bug修复 - [ ] 新特性 - [ ] 性能优化 - [ ] 文档更新 - [x] 其他,请描述:用例添加 ## AI/Agent生成声明 <!-- [x] 表示选中 --> - [ ] AI辅助编写 See merge request: cann/ops-nn!8026 | 1 个月前 | |
batch_norm_v3/rms_norm_grad : 还原 infer/dgamma 计算的内联写法 Co-authored-by: rk<wangpengbo26@huawei.com> # message auto-generated for no-merge-commit merge: !8107 merge cleancode9 into master batch_norm_v3/rms_norm_grad : 还原 infer/dgamma 计算的内联写法 Created-by: wangpengbo26 Commit-by: rk Merged-by: cann-robot Description: ## 描述 将 batch_norm_v3 三个 infer 变体( InferLastChannelContinuousA、InferLastChannelSmallA、InferSmallAB1)的 Compute 方法与 rms_norm_grad 的 CalcDgamma 计算路径由 helper 间接调用改回内联实现,去掉 InferComputeImpl、ComputePreDgamma 两个间接层,使 arch35 设备侧计算路径更直观。 ### 改动原因 此前 infer Compute 统一通过 InferComputeImpl 模板函数间接调用 VFNormalize,rms_norm_grad dgamma 通过 ComputePreDgamma 间接组装 EnQue/DeQue/计算/Free 流程。间接层增加了阅读成本:调用点看不到实际的数据搬运与计算顺序,需跳转 helper 才能理解设备侧行为。 ### 改动方法 - **batch_norm_v3 三个 infer 变体**:Compute 内联 DeQue → AllocTensor → Get → GetPhyAddr → VFNormalize → EnQue → FreeTensor 全流程,删除对 InferComputeImpl 的调用;同时移除为暴露 VFNormalize 而插入的 public:/private: 访问控制切换,恢复为类内私有方法。 - **batch_norm_v3_regbase_common.h**:删除不再被引用的 InferComputeImpl 模板函数(-26 行)。 - **rms_norm_grad_regbase_dgamma.h**:删除 ComputePreDgamma 方法,将其逻辑(EnQue/DeQue/GetPhyAddr/VFCalcPreDgamma/FreeTensor)内联到 CalcDgamma 及两处循环调用点;dgammaOutAddr 由输出参数改为局部变量。 不改变计算逻辑、计算顺序与内存分配顺序。 ## 关联的Issue - https://gitcode.com/cann/ops-nn/issues/4444 ## 测试 pass ## 文档更新 无。 ## 类型标签 - [ ] Bug修复 - [ ] 新特性 - [ ] 性能优化 - [ ] 文档更新 - [x] 其他,请描述:回退还原内联写法 ## AI/Agent生成声明 - [ ] AI辅助编写 See merge request: cann/ops-nn!8107 | 1 个月前 | |
[CANNBot] BNInferGrad算子支持Ascend950 Ascendc实现 Co-authored-by: lianjieyu<yulianjie@huawei.com> # message auto-generated for no-merge-commit merge: !7960 merge bn_infer_grad into master [CANNBot] BNInferGrad算子支持Ascend950 Ascendc实现 Created-by: lianjieyu Commit-by: lianjieyu Merged-by: cann-robot Description: ## 描述 ### 背景与目标 为满足 [Issue #4333](https://gitcode.com/cann/ops-nn/issues/4333) 中 BNInferGrad 算子在 Ascend 950 上的支持需求,本 PR 新增 BNInferGrad 的 AscendC 实现,打通算子定义、图推导、Host Tiling、Kernel、GEIR 示例及 UT 测试链路。 算子用于计算 Batch Normalization 推理模式下输入的反向梯度: $$ x\_backprop = grads \times \frac{scale}{\sqrt{batch\_variance + epsilon}} $$ 其中 scale 和 batch_variance 沿 grads 的 C 维广播。 ### 功能规格 - grads:支持 2D~5D ND 张量,数据类型支持 FLOAT16、FLOAT、BFLOAT16。 - scale、batch_variance:仅支持一维 FLOAT 张量,长度必须与 grads 的 C 维一致。 - epsilon:可选 FLOAT 属性,默认值为 0.0001。 - x_backprop:shape 和数据类型与 grads 保持一致。 ### 主要改动 1. **算子定义与图推导** - 新增 BNInferGrad 原型、OpDef 注册、Graph Infer、InferShape 和 InferDataType 实现。 - 配置 Ascend 950 AI Core,支持动态 Shape、动态 Rank 和动态 Format。 2. **Host Tiling** - 新增 arch35 Tiling 实现及容量计算,根据输入 rank 分发 RANK_4(rank 2~4)和 RANK_8(rank 5)TilingKey。 - 实现通道广播归一化、UB 容量评估和多核切分。 - 增加输入 rank、scale/batch_variance 一维约束及通道长度一致性校验,并处理空 Tensor 场景。 3. **AscendC Kernel** - 新增 Ascend 950 Kernel 入口及 BnInferGradKernel 模板实现。 - FP32 路径直接计算;FP16/BF16 路径转为 FP32 计算后再转换回原数据类型。 - 通过 NDDMA 随路广播读取 scale 和 batch_variance,支持多核分片计算与结果搬出。 4. **示例、测试与文档** - 新增 FP16 多核广播、BF16 数值校验的 GEIR 图模式示例,并覆盖非法输入 rank 拒绝场景。 - 新增 Tiling、InferShape、Kernel UT 及 Python Golden。 - 新增算子 README,并更新中文算子清单。 ## 关联的 Issue - https://gitcode.com/cann/ops-nn/issues/4333 ## 测试 - **Tiling UT**:覆盖 FP16/FP32/BF16、2D~5D、RANK_4/RANK_8 分发、C 维广播、空 Tensor、多核大 Shape,以及 rank/通道长度非法场景。 - **InferShape UT**:覆盖 2D、4D、5D 输入,校验输出 shape 跟随 grads。 - **Kernel UT**:覆盖 FP32 的 RANK_4、RANK_8 数值结果校验。 - **GEIR 示例**:覆盖 FP16 多核广播数值校验、BF16 数值校验,以及非法 scale/batch_variance rank 拒绝场景。 - **CI**:编译、ophost/opapi/kernel/opgraph UT、PreSmoke 和静态检查已通过;当前 API_Check 为 WARNING,后续以 PR 页面最新流水线结果为准。 ## 文档更新 - 新增 norm/bn_infer_grad/README.md,补充产品支持、计算公式、参数约束和调用示例。 - 更新 docs/zh/op_list.md,新增 BNInferGrad 算子条目。 ## 类型标签 - [ ] Bug修复 - [x] 新特性 - [ ] 性能优化 - [x] 文档更新 - [ ] 其他,请描述: ## AI/Agent生成声明 - [x] AI辅助编写 See merge request: cann/ops-nn!7960 | 1 个月前 | |
modified md files (The product filtering tag is added to the aclnn*.md files of the forech and norm classes) Co-authored-by: zhaozhoujun520<zhaozhoujun@huawei.com> # message auto-generated for no-merge-commit merge: !7858 merge master into master modified md files (The product filtering tag is added to the aclnn*.md files of the forech and norm classes) Created-by: gitee-duhuiping Commit-by: zhaozhoujun520 Merged-by: cann-robot Description: ## 描述 The product filtering tag is added to the aclnn*.md files of the forech and norm classes. ## 关联的Issue [#4263](https://gitcode.com/cann/ops-nn/issues/4263) ## 测试 Only involves updating the MD document description, does not involve testing. ## 文档更新 aclnn*.md ## 类型标签 <!-- [x] 表示选中 --> - [ ] Bug修复 - [ ] 新特性 - [ ] 性能优化 - [x] 文档更新 - [ ] 其他,请描述: ## AI/Agent生成声明 <!-- [x] 表示选中 --> - [ ] AI辅助编写 See merge request: cann/ops-nn!7858 | 1 个月前 | |
format cpp Co-authored-by: yang-di52<yangdi52@huawei.com> # message auto-generated for no-merge-commit merge: !6784 merge issue_fix into master format cpp Created-by: yang-di52 Commit-by: yang-di52 Merged-by: cann-robot Description: ## 描述 批量刷新cpp代码格式 ## 关联的Issue [#3791](https://gitcode.com/cann/ops-nn/issues/3791) ## 测试 <!--描述进行了哪些测试来验证你的改动。--> ## 文档更新 <!--如果这个PR包含文档的更新,请在这里指出。例如:更新了README.md文件。--> ## 类型标签 <!-- [x] 表示选中 --> - [ ] Bug修复 - [ ] 新特性 - [ ] 性能优化 - [ ] 文档更新 - [x] 其他,请描述:代码格式化 ## AI/Agent生成声明 <!-- [x] 表示选中 --> - [ ] AI辅助编写 See merge request: cann/ops-nn!6784 | 2 个月前 | |
modified md files (The product filtering tag is added to the aclnn*.md files of the forech and norm classes) Co-authored-by: zhaozhoujun520<zhaozhoujun@huawei.com> # message auto-generated for no-merge-commit merge: !7858 merge master into master modified md files (The product filtering tag is added to the aclnn*.md files of the forech and norm classes) Created-by: gitee-duhuiping Commit-by: zhaozhoujun520 Merged-by: cann-robot Description: ## 描述 The product filtering tag is added to the aclnn*.md files of the forech and norm classes. ## 关联的Issue [#4263](https://gitcode.com/cann/ops-nn/issues/4263) ## 测试 Only involves updating the MD document description, does not involve testing. ## 文档更新 aclnn*.md ## 类型标签 <!-- [x] 表示选中 --> - [ ] Bug修复 - [ ] 新特性 - [ ] 性能优化 - [x] 文档更新 - [ ] 其他,请描述: ## AI/Agent生成声明 <!-- [x] 表示选中 --> - [ ] AI辅助编写 See merge request: cann/ops-nn!7858 | 1 个月前 | |
modified md files (The product filtering tag is added to the aclnn*.md files of the forech and norm classes) Co-authored-by: zhaozhoujun520<zhaozhoujun@huawei.com> # message auto-generated for no-merge-commit merge: !7858 merge master into master modified md files (The product filtering tag is added to the aclnn*.md files of the forech and norm classes) Created-by: gitee-duhuiping Commit-by: zhaozhoujun520 Merged-by: cann-robot Description: ## 描述 The product filtering tag is added to the aclnn*.md files of the forech and norm classes. ## 关联的Issue [#4263](https://gitcode.com/cann/ops-nn/issues/4263) ## 测试 Only involves updating the MD document description, does not involve testing. ## 文档更新 aclnn*.md ## 类型标签 <!-- [x] 表示选中 --> - [ ] Bug修复 - [ ] 新特性 - [ ] 性能优化 - [x] 文档更新 - [ ] 其他,请描述: ## AI/Agent生成声明 <!-- [x] 表示选中 --> - [ ] AI辅助编写 See merge request: cann/ops-nn!7858 | 1 个月前 | |
format cpp Co-authored-by: yang-di52<yangdi52@huawei.com> # message auto-generated for no-merge-commit merge: !6784 merge issue_fix into master format cpp Created-by: yang-di52 Commit-by: yang-di52 Merged-by: cann-robot Description: ## 描述 批量刷新cpp代码格式 ## 关联的Issue [#3791](https://gitcode.com/cann/ops-nn/issues/3791) ## 测试 <!--描述进行了哪些测试来验证你的改动。--> ## 文档更新 <!--如果这个PR包含文档的更新,请在这里指出。例如:更新了README.md文件。--> ## 类型标签 <!-- [x] 表示选中 --> - [ ] Bug修复 - [ ] 新特性 - [ ] 性能优化 - [ ] 文档更新 - [x] 其他,请描述:代码格式化 ## AI/Agent生成声明 <!-- [x] 表示选中 --> - [ ] AI辅助编写 See merge request: cann/ops-nn!6784 | 2 个月前 | |
TF plugin 算子迁移 Co-authored-by: sunchun<sunchun4@h-partners.com> # message auto-generated for no-merge-commit merge: !7619 merge nn3 into master TF plugin 算子迁移 Created-by: sunchun Commit-by: sunchun Merged-by: cann-robot Description: ## 描述 TF plugin 迁移 ## 关联的Issue https://gitcode.com/cann/ops-nn/issues/4196 ## 测试 <!--描述进行了哪些测试来验证你的改动。--> ## 文档更新 <!--如果这个PR包含文档的更新,请在这里指出。例如:更新了README.md文件。--> ## 类型标签 <!-- [x] 表示选中 --> - [ ] Bug修复 - [x] 新特性 - [ ] 性能优化 - [ ] 文档更新 - [ ] 其他,请描述: ## AI/Agent生成声明 <!-- [x] 表示选中 --> - [ ] AI辅助编写 See merge request: cann/ops-nn!7619 | 1 个月前 | |
modified md files (The product filtering tag is added to the aclnn*.md files of the forech and norm classes) Co-authored-by: zhaozhoujun520<zhaozhoujun@huawei.com> # message auto-generated for no-merge-commit merge: !7858 merge master into master modified md files (The product filtering tag is added to the aclnn*.md files of the forech and norm classes) Created-by: gitee-duhuiping Commit-by: zhaozhoujun520 Merged-by: cann-robot Description: ## 描述 The product filtering tag is added to the aclnn*.md files of the forech and norm classes. ## 关联的Issue [#4263](https://gitcode.com/cann/ops-nn/issues/4263) ## 测试 Only involves updating the MD document description, does not involve testing. ## 文档更新 aclnn*.md ## 类型标签 <!-- [x] 表示选中 --> - [ ] Bug修复 - [ ] 新特性 - [ ] 性能优化 - [x] 文档更新 - [ ] 其他,请描述: ## AI/Agent生成声明 <!-- [x] 表示选中 --> - [ ] AI辅助编写 See merge request: cann/ops-nn!7858 | 1 个月前 | |
modified md files (The product filtering tag is added to the aclnn*.md files of the forech and norm classes) Co-authored-by: zhaozhoujun520<zhaozhoujun@huawei.com> # message auto-generated for no-merge-commit merge: !7858 merge master into master modified md files (The product filtering tag is added to the aclnn*.md files of the forech and norm classes) Created-by: gitee-duhuiping Commit-by: zhaozhoujun520 Merged-by: cann-robot Description: ## 描述 The product filtering tag is added to the aclnn*.md files of the forech and norm classes. ## 关联的Issue [#4263](https://gitcode.com/cann/ops-nn/issues/4263) ## 测试 Only involves updating the MD document description, does not involve testing. ## 文档更新 aclnn*.md ## 类型标签 <!-- [x] 表示选中 --> - [ ] Bug修复 - [ ] 新特性 - [ ] 性能优化 - [x] 文档更新 - [ ] 其他,请描述: ## AI/Agent生成声明 <!-- [x] 表示选中 --> - [ ] AI辅助编写 See merge request: cann/ops-nn!7858 | 1 个月前 | |
modified md files (The product filtering tag is added to the aclnn*.md files of the forech and norm classes) Co-authored-by: zhaozhoujun520<zhaozhoujun@huawei.com> # message auto-generated for no-merge-commit merge: !7858 merge master into master modified md files (The product filtering tag is added to the aclnn*.md files of the forech and norm classes) Created-by: gitee-duhuiping Commit-by: zhaozhoujun520 Merged-by: cann-robot Description: ## 描述 The product filtering tag is added to the aclnn*.md files of the forech and norm classes. ## 关联的Issue [#4263](https://gitcode.com/cann/ops-nn/issues/4263) ## 测试 Only involves updating the MD document description, does not involve testing. ## 文档更新 aclnn*.md ## 类型标签 <!-- [x] 表示选中 --> - [ ] Bug修复 - [ ] 新特性 - [ ] 性能优化 - [x] 文档更新 - [ ] 其他,请描述: ## AI/Agent生成声明 <!-- [x] 表示选中 --> - [ ] AI辅助编写 See merge request: cann/ops-nn!7858 | 1 个月前 | |
modified md files (The product filtering tag is added to the aclnn*.md files of the forech and norm classes) Co-authored-by: zhaozhoujun520<zhaozhoujun@huawei.com> # message auto-generated for no-merge-commit merge: !7858 merge master into master modified md files (The product filtering tag is added to the aclnn*.md files of the forech and norm classes) Created-by: gitee-duhuiping Commit-by: zhaozhoujun520 Merged-by: cann-robot Description: ## 描述 The product filtering tag is added to the aclnn*.md files of the forech and norm classes. ## 关联的Issue [#4263](https://gitcode.com/cann/ops-nn/issues/4263) ## 测试 Only involves updating the MD document description, does not involve testing. ## 文档更新 aclnn*.md ## 类型标签 <!-- [x] 表示选中 --> - [ ] Bug修复 - [ ] 新特性 - [ ] 性能优化 - [x] 文档更新 - [ ] 其他,请描述: ## AI/Agent生成声明 <!-- [x] 表示选中 --> - [ ] AI辅助编写 See merge request: cann/ops-nn!7858 | 1 个月前 | |
non_zero_with_value, multilabel_margin_loss和group_norm_silu_quant下一代算子支持 Co-authored-by: tangpingchuan<tangpingchuan@huawei.com> # message auto-generated for no-merge-commit merge: !7599 merge master into master non_zero_with_value, multilabel_margin_loss和group_norm_silu_quant下一代算子支持 Created-by: zl_hw Commit-by: tangpingchuan Merged-by: cann-robot Description: ## 描述 支持下一代non_zero_with_value, multilabel_margin_loss和group_norm_silu_quant算子 ## 关联的Issue https://gitcode.com/cann/ops-nn/issues/4221 ## 测试 ut/st ## 文档更新 README.md ## 类型标签 <!-- [x] 表示选中 --> - [ ] Bug修复 - [x] 新特性 - [ ] 性能优化 - [ ] 文档更新 - [ ] 其他,请描述: ## AI/Agent生成声明 <!-- [x] 表示选中 --> - [x] AI辅助编写 See merge request: cann/ops-nn!7599 | 1 个月前 | |
modified md files (The product filtering tag is added to the aclnn*.md files of the forech and norm classes) Co-authored-by: zhaozhoujun520<zhaozhoujun@huawei.com> # message auto-generated for no-merge-commit merge: !7858 merge master into master modified md files (The product filtering tag is added to the aclnn*.md files of the forech and norm classes) Created-by: gitee-duhuiping Commit-by: zhaozhoujun520 Merged-by: cann-robot Description: ## 描述 The product filtering tag is added to the aclnn*.md files of the forech and norm classes. ## 关联的Issue [#4263](https://gitcode.com/cann/ops-nn/issues/4263) ## 测试 Only involves updating the MD document description, does not involve testing. ## 文档更新 aclnn*.md ## 类型标签 <!-- [x] 表示选中 --> - [ ] Bug修复 - [ ] 新特性 - [ ] 性能优化 - [x] 文档更新 - [ ] 其他,请描述: ## AI/Agent生成声明 <!-- [x] 表示选中 --> - [ ] AI辅助编写 See merge request: cann/ops-nn!7858 | 1 个月前 | |
modified md files (The product filtering tag is added to the aclnn*.md files of the forech and norm classes) Co-authored-by: zhaozhoujun520<zhaozhoujun@huawei.com> # message auto-generated for no-merge-commit merge: !7858 merge master into master modified md files (The product filtering tag is added to the aclnn*.md files of the forech and norm classes) Created-by: gitee-duhuiping Commit-by: zhaozhoujun520 Merged-by: cann-robot Description: ## 描述 The product filtering tag is added to the aclnn*.md files of the forech and norm classes. ## 关联的Issue [#4263](https://gitcode.com/cann/ops-nn/issues/4263) ## 测试 Only involves updating the MD document description, does not involve testing. ## 文档更新 aclnn*.md ## 类型标签 <!-- [x] 表示选中 --> - [ ] Bug修复 - [ ] 新特性 - [ ] 性能优化 - [x] 文档更新 - [ ] 其他,请描述: ## AI/Agent生成声明 <!-- [x] 表示选中 --> - [ ] AI辅助编写 See merge request: cann/ops-nn!7858 | 1 个月前 | |
add_cases Co-authored-by: zhaogrug<zhaohai16@h-partners.com> # message auto-generated for no-merge-commit merge: !7583 merge add_cases into master add_cases Created-by: zhaogrug Commit-by: zhaogrug Merged-by: cann-robot Description: ## 描述 新增仓内新版ttk用例 <!--在这里详细描述你的改动,包括改动的原因和所采取的方法。--> ## 关联的Issue [#4223](https://gitcode.com/cann/ops-nn/issues/4223) <!-- 如果这个PR是为了解决特定的Issue,请在这里提供Issue链接。例如:关联Issue #000--> ## 测试 冒烟测试,本地验证 <!--描述进行了哪些测试来验证你的改动。--> ## 文档更新 <!--如果这个PR包含文档的更新,请在这里指出。例如:更新了README.md文件。--> ## 类型标签 <!-- [x] 表示选中 --> - [ ] Bug修复 - [ ] 新特性 - [ ] 性能优化 - [ ] 文档更新 - [x] 其他,请描述:用例添加 ## AI/Agent生成声明 <!-- [x] 表示选中 --> - [ ] AI辅助编写 See merge request: cann/ops-nn!7583 | 1 个月前 | |
fix cleancode Co-authored-by: alfengyuan<yyfgdut@gmail.com> # message auto-generated for no-merge-commit merge: !8050 merge master into master fix cleancode Created-by: alfengyuan Commit-by: alfengyuan Merged-by: cann-robot Description: ## 描述 <!--在这里详细描述你的改动,包括改动的原因和所采取的方法。--> fix cleancode ## 关联的Issue <!-- 如果这个PR是为了解决特定的Issue,请在这里提供Issue链接。例如:关联Issue #000--> cleancode修改,不涉及功能,不涉及文档 ## 测试 <!--描述进行了哪些测试来验证你的改动。--> cleancode修改,不涉及功能,不涉及文档 ## 文档更新 <!--如果这个PR包含文档的更新,请在这里指出。例如:更新了README.md文件。--> cleancode修改,不涉及功能,不涉及文档 ## 类型标签 <!-- [x] 表示选中 --> - [ ] Bug修复 - [ ] 新特性 - [ ] 性能优化 - [ ] 文档更新 - [x] 其他,请描述:纯cleancode ## AI/Agent生成声明 <!-- [x] 表示选中 --> - [ ] AI辅助编写 See merge request: cann/ops-nn!8050 | 1 个月前 | |
norm: add arch35(Ascend950) InTrainingUpdateGrad/InstanceNormGrad/L2NormalizeGrad Co-authored-by: tangpingchuan<tangpingchuan@huawei.com> # message auto-generated for no-merge-commit merge: !7965 merge feat/norm-grad-ops-arch35 into master norm: add arch35(Ascend950) InTrainingUpdateGrad/InstanceNormGrad/L2NormalizeGrad Created-by: zl_hw Commit-by: tangpingchuan Merged-by: cann-robot Description: ## 描述 InTrainingUpdateGrad/InstanceNormGrad/L2NormalizeGrad算子下一代支持 ## 关联的Issue https://gitcode.com/cann/ops-nn/issues/4371 ## 测试 ut/st/冒烟 ## 文档更新 README ## 类型标签 <!-- [x] 表示选中 --> - [ ] Bug修复 - [x] 新特性 - [ ] 性能优化 - [ ] 文档更新 - [ ] 其他,请描述: ## AI/Agent生成声明 <!-- [x] 表示选中 --> - [x] AI辅助编写 See merge request: cann/ops-nn!7965 | 1 个月前 | |
modified md files(for readability improvement) Co-authored-by: duhuiping<duhuiping@h-partners.com> # message auto-generated for no-merge-commit merge: !7592 merge master into master modified md files(for readability improvement) Created-by: gitee-duhuiping Commit-by: duhuiping Merged-by: cann-robot Description: ## 描述 Optimized the function description and parameter description. Optimized the calculation formula. Modified the description of interface invoking, deleted repeated content, and corrected parameter names. ## 关联的Issue [#4236](https://gitcode.com/cann/ops-nn/issues/4236) ## 测试 Only involves updating the MD document description, does not involve testing. ## 文档更新 md files ## 类型标签 <!-- [x] 表示选中 --> - [ ] Bug修复 - [ ] 新特性 - [ ] 性能优化 - [x] 文档更新 - [ ] 其他,请描述: ## AI/Agent生成声明 <!-- [x] 表示选中 --> - [ ] AI辅助编写 See merge request: cann/ops-nn!7592 | 1 个月前 | |
modified md files (The product filtering tag is added to the aclnn*.md files of the forech and norm classes) Co-authored-by: zhaozhoujun520<zhaozhoujun@huawei.com> # message auto-generated for no-merge-commit merge: !7858 merge master into master modified md files (The product filtering tag is added to the aclnn*.md files of the forech and norm classes) Created-by: gitee-duhuiping Commit-by: zhaozhoujun520 Merged-by: cann-robot Description: ## 描述 The product filtering tag is added to the aclnn*.md files of the forech and norm classes. ## 关联的Issue [#4263](https://gitcode.com/cann/ops-nn/issues/4263) ## 测试 Only involves updating the MD document description, does not involve testing. ## 文档更新 aclnn*.md ## 类型标签 <!-- [x] 表示选中 --> - [ ] Bug修复 - [ ] 新特性 - [ ] 性能优化 - [x] 文档更新 - [ ] 其他,请描述: ## AI/Agent生成声明 <!-- [x] 表示选中 --> - [ ] AI辅助编写 See merge request: cann/ops-nn!7858 | 1 个月前 | |
add cases Co-authored-by: zhaogrug<zhaohai16@h-partners.com> # message auto-generated for no-merge-commit merge: !8026 merge the_rest_of_cases into master add cases Created-by: zhaogrug Commit-by: zhaogrug Merged-by: cann-robot Description: ## 描述 新增仓内新版ttk用例 <!--在这里详细描述你的改动,包括改动的原因和所采取的方法。--> ## 关联的Issue [#4386](https://gitcode.com/cann/ops-nn/issues/4386) <!-- 如果这个PR是为了解决特定的Issue,请在这里提供Issue链接。例如:关联Issue #000--> ## 测试 冒烟测试,本地验证 <!--描述进行了哪些测试来验证你的改动。--> ## 文档更新 <!--如果这个PR包含文档的更新,请在这里指出。例如:更新了README.md文件。--> ## 类型标签 <!-- [x] 表示选中 --> - [ ] Bug修复 - [ ] 新特性 - [ ] 性能优化 - [ ] 文档更新 - [x] 其他,请描述:用例添加 ## AI/Agent生成声明 <!-- [x] 表示选中 --> - [ ] AI辅助编写 See merge request: cann/ops-nn!8026 | 1 个月前 | |
norm: add arch35(Ascend950) InTrainingUpdateGrad/InstanceNormGrad/L2NormalizeGrad Co-authored-by: tangpingchuan<tangpingchuan@huawei.com> # message auto-generated for no-merge-commit merge: !7965 merge feat/norm-grad-ops-arch35 into master norm: add arch35(Ascend950) InTrainingUpdateGrad/InstanceNormGrad/L2NormalizeGrad Created-by: zl_hw Commit-by: tangpingchuan Merged-by: cann-robot Description: ## 描述 InTrainingUpdateGrad/InstanceNormGrad/L2NormalizeGrad算子下一代支持 ## 关联的Issue https://gitcode.com/cann/ops-nn/issues/4371 ## 测试 ut/st/冒烟 ## 文档更新 README ## 类型标签 <!-- [x] 表示选中 --> - [ ] Bug修复 - [x] 新特性 - [ ] 性能优化 - [ ] 文档更新 - [ ] 其他,请描述: ## AI/Agent生成声明 <!-- [x] 表示选中 --> - [x] AI辅助编写 See merge request: cann/ops-nn!7965 | 1 个月前 | |
modified md files (The product filtering tag is added to the aclnn*.md files of the forech and norm classes) Co-authored-by: zhaozhoujun520<zhaozhoujun@huawei.com> # message auto-generated for no-merge-commit merge: !7858 merge master into master modified md files (The product filtering tag is added to the aclnn*.md files of the forech and norm classes) Created-by: gitee-duhuiping Commit-by: zhaozhoujun520 Merged-by: cann-robot Description: ## 描述 The product filtering tag is added to the aclnn*.md files of the forech and norm classes. ## 关联的Issue [#4263](https://gitcode.com/cann/ops-nn/issues/4263) ## 测试 Only involves updating the MD document description, does not involve testing. ## 文档更新 aclnn*.md ## 类型标签 <!-- [x] 表示选中 --> - [ ] Bug修复 - [ ] 新特性 - [ ] 性能优化 - [x] 文档更新 - [ ] 其他,请描述: ## AI/Agent生成声明 <!-- [x] 表示选中 --> - [ ] AI辅助编写 See merge request: cann/ops-nn!7858 | 1 个月前 | |
norm: add arch35(Ascend950) InTrainingUpdateGrad/InstanceNormGrad/L2NormalizeGrad Co-authored-by: tangpingchuan<tangpingchuan@huawei.com> # message auto-generated for no-merge-commit merge: !7965 merge feat/norm-grad-ops-arch35 into master norm: add arch35(Ascend950) InTrainingUpdateGrad/InstanceNormGrad/L2NormalizeGrad Created-by: zl_hw Commit-by: tangpingchuan Merged-by: cann-robot Description: ## 描述 InTrainingUpdateGrad/InstanceNormGrad/L2NormalizeGrad算子下一代支持 ## 关联的Issue https://gitcode.com/cann/ops-nn/issues/4371 ## 测试 ut/st/冒烟 ## 文档更新 README ## 类型标签 <!-- [x] 表示选中 --> - [ ] Bug修复 - [x] 新特性 - [ ] 性能优化 - [ ] 文档更新 - [ ] 其他,请描述: ## AI/Agent生成声明 <!-- [x] 表示选中 --> - [x] AI辅助编写 See merge request: cann/ops-nn!7965 | 1 个月前 | |
fix: comment out dlog_setlevel calls in UT tests for target operators Co-authored-by: liangyuhua<liangyuhua4@huawei.com> # message auto-generated for no-merge-commit merge: !8042 merge fix/comment-out-dlog-setlevel into master fix: comment out dlog_setlevel calls in UT tests for target operators Created-by: liangyuhua Commit-by: liangyuhua Merged-by: cann-robot Description: ## 描述 删除 11 个目标算子 UT 测试文件中所有 dlog_setlevel 调用(含已注释的),避免 UT 运行时修改全局日志级别影响其他用例,同时清理无用注释代码。修复 batch_norm_grad_v3 中变量名 workspace_size_holer 拼写错误为 workspace_size_holder。 涉及的算子及文件: | 模块 | 算子 | 文件 | 删除数量 | |------|------|------|---------| | activation | ConfusionSoftmaxGrad | test_confusion_softmax_grad_tiling.cpp | 6 | | activation | LogSoftmaxGrad | test_log_softmax_grad_tiling.cpp | 14 | | activation | SoftmaxGrad | test_softmax_grad_tiling.cpp | 12 | | index | BroadcastGradientArgs | test_broadcast_gradient_args_tiling.cpp | 32 | | norm | BatchNorm | test_batch_norm_tiling.cpp | 3 | | norm | BatchNormGrad | test_batch_norm_grad_tiling.cpp | 48 | | norm | BatchNormGradV3 | test_batch_norm_grad_v3_tiling.cpp | 44 | | norm | LayerNorm | test_layer_norm_tiling.cpp | 2 | | norm | LayerNormV3 | test_layer_norm_v3_tiling.cpp | 8 | | norm | RmsNormDynamicMxQuant | test_rms_norm_dynamic_mx_quant_infershape.cpp | 2 | | norm | SyncBatchNormGatherStats | test_sync_batch_norm_gather_stats_tiling.cpp | 12 | 共计 11 个文件,删除 183 处 dlog_setlevel 调用。 额外修复: - batch_norm_grad_v3 文件中 46 处变量名 workspace_size_holer 拼写错误修正为 workspace_size_holder - layer_norm_v3 文件 license header 从旧格式更新为标准格式 注:RmsNormGrad、SoftmaxV2、LogSoftmaxV2 的 dlog_setlevel 删除已通过前置 PR 合入 master,本 PR 不再重复修改。 ## 关联的Issue #4396 ## 测试 - [x] pre-commit 全部通过(clang-format + OAT + codespell 等,11 个文件手动扫描确认) - [x] 仅删除 dlog_setlevel 调用及修复变量名拼写,不影响测试逻辑 ## 文档更新 无需更新文档 ## 类型标签 - [x] Bug修复 - [ ] 新特性 - [ ] 性能优化 - [ ] 文档更新 - [ ] 其他,请描述: ## AI/Agent生成声明 - [x] AI辅助编写 See merge request: cann/ops-nn!8042 | 1 个月前 | |
TF plugin 迁移 Co-authored-by: sunchun<sunchun4@h-partners.com> # message auto-generated for no-merge-commit merge: !7632 merge nn4 into master TF plugin 迁移 Created-by: sunchun Commit-by: sunchun Merged-by: cann-robot Description: ## 描述 TF plugin 迁移 ## 关联的Issue https://gitcode.com/cann/ops-nn/issues/4196 ## 测试 <!--描述进行了哪些测试来验证你的改动。--> ## 文档更新 <!--如果这个PR包含文档的更新,请在这里指出。例如:更新了README.md文件。--> ## 类型标签 <!-- [x] 表示选中 --> - [ ] Bug修复 - [x] 新特性 - [ ] 性能优化 - [ ] 文档更新 - [ ] 其他,请描述: ## AI/Agent生成声明 <!-- [x] 表示选中 --> - [ ] AI辅助编写 See merge request: cann/ops-nn!7632 | 1 个月前 | |
modified md files (The product filtering tag is added to the aclnn*.md files of the forech and norm classes) Co-authored-by: zhaozhoujun520<zhaozhoujun@huawei.com> # message auto-generated for no-merge-commit merge: !7858 merge master into master modified md files (The product filtering tag is added to the aclnn*.md files of the forech and norm classes) Created-by: gitee-duhuiping Commit-by: zhaozhoujun520 Merged-by: cann-robot Description: ## 描述 The product filtering tag is added to the aclnn*.md files of the forech and norm classes. ## 关联的Issue [#4263](https://gitcode.com/cann/ops-nn/issues/4263) ## 测试 Only involves updating the MD document description, does not involve testing. ## 文档更新 aclnn*.md ## 类型标签 <!-- [x] 表示选中 --> - [ ] Bug修复 - [ ] 新特性 - [ ] 性能优化 - [x] 文档更新 - [ ] 其他,请描述: ## AI/Agent生成声明 <!-- [x] 表示选中 --> - [ ] AI辅助编写 See merge request: cann/ops-nn!7858 | 1 个月前 | |
modified md files (The product filtering tag is added to the aclnn*.md files of the forech and norm classes) Co-authored-by: zhaozhoujun520<zhaozhoujun@huawei.com> # message auto-generated for no-merge-commit merge: !7858 merge master into master modified md files (The product filtering tag is added to the aclnn*.md files of the forech and norm classes) Created-by: gitee-duhuiping Commit-by: zhaozhoujun520 Merged-by: cann-robot Description: ## 描述 The product filtering tag is added to the aclnn*.md files of the forech and norm classes. ## 关联的Issue [#4263](https://gitcode.com/cann/ops-nn/issues/4263) ## 测试 Only involves updating the MD document description, does not involve testing. ## 文档更新 aclnn*.md ## 类型标签 <!-- [x] 表示选中 --> - [ ] Bug修复 - [ ] 新特性 - [ ] 性能优化 - [x] 文档更新 - [ ] 其他,请描述: ## AI/Agent生成声明 <!-- [x] 表示选中 --> - [ ] AI辅助编写 See merge request: cann/ops-nn!7858 | 1 个月前 | |
fix: comment out dlog_setlevel calls in UT tests for target operators Co-authored-by: liangyuhua<liangyuhua4@huawei.com> # message auto-generated for no-merge-commit merge: !8042 merge fix/comment-out-dlog-setlevel into master fix: comment out dlog_setlevel calls in UT tests for target operators Created-by: liangyuhua Commit-by: liangyuhua Merged-by: cann-robot Description: ## 描述 删除 11 个目标算子 UT 测试文件中所有 dlog_setlevel 调用(含已注释的),避免 UT 运行时修改全局日志级别影响其他用例,同时清理无用注释代码。修复 batch_norm_grad_v3 中变量名 workspace_size_holer 拼写错误为 workspace_size_holder。 涉及的算子及文件: | 模块 | 算子 | 文件 | 删除数量 | |------|------|------|---------| | activation | ConfusionSoftmaxGrad | test_confusion_softmax_grad_tiling.cpp | 6 | | activation | LogSoftmaxGrad | test_log_softmax_grad_tiling.cpp | 14 | | activation | SoftmaxGrad | test_softmax_grad_tiling.cpp | 12 | | index | BroadcastGradientArgs | test_broadcast_gradient_args_tiling.cpp | 32 | | norm | BatchNorm | test_batch_norm_tiling.cpp | 3 | | norm | BatchNormGrad | test_batch_norm_grad_tiling.cpp | 48 | | norm | BatchNormGradV3 | test_batch_norm_grad_v3_tiling.cpp | 44 | | norm | LayerNorm | test_layer_norm_tiling.cpp | 2 | | norm | LayerNormV3 | test_layer_norm_v3_tiling.cpp | 8 | | norm | RmsNormDynamicMxQuant | test_rms_norm_dynamic_mx_quant_infershape.cpp | 2 | | norm | SyncBatchNormGatherStats | test_sync_batch_norm_gather_stats_tiling.cpp | 12 | 共计 11 个文件,删除 183 处 dlog_setlevel 调用。 额外修复: - batch_norm_grad_v3 文件中 46 处变量名 workspace_size_holer 拼写错误修正为 workspace_size_holder - layer_norm_v3 文件 license header 从旧格式更新为标准格式 注:RmsNormGrad、SoftmaxV2、LogSoftmaxV2 的 dlog_setlevel 删除已通过前置 PR 合入 master,本 PR 不再重复修改。 ## 关联的Issue #4396 ## 测试 - [x] pre-commit 全部通过(clang-format + OAT + codespell 等,11 个文件手动扫描确认) - [x] 仅删除 dlog_setlevel 调用及修复变量名拼写,不影响测试逻辑 ## 文档更新 无需更新文档 ## 类型标签 - [x] Bug修复 - [ ] 新特性 - [ ] 性能优化 - [ ] 文档更新 - [ ] 其他,请描述: ## AI/Agent生成声明 - [x] AI辅助编写 See merge request: cann/ops-nn!8042 | 1 个月前 | |
modified md files (The product filtering tag is added to the aclnn*.md files of the forech and norm classes) Co-authored-by: zhaozhoujun520<zhaozhoujun@huawei.com> # message auto-generated for no-merge-commit merge: !7858 merge master into master modified md files (The product filtering tag is added to the aclnn*.md files of the forech and norm classes) Created-by: gitee-duhuiping Commit-by: zhaozhoujun520 Merged-by: cann-robot Description: ## 描述 The product filtering tag is added to the aclnn*.md files of the forech and norm classes. ## 关联的Issue [#4263](https://gitcode.com/cann/ops-nn/issues/4263) ## 测试 Only involves updating the MD document description, does not involve testing. ## 文档更新 aclnn*.md ## 类型标签 <!-- [x] 表示选中 --> - [ ] Bug修复 - [ ] 新特性 - [ ] 性能优化 - [x] 文档更新 - [ ] 其他,请描述: ## AI/Agent生成声明 <!-- [x] 表示选中 --> - [ ] AI辅助编写 See merge request: cann/ops-nn!7858 | 1 个月前 | |
fix: 补充 inplace_apply_keras_momentum 和 lp_norm_update 算子 tiling 校验 Co-authored-by: Davon14272<liuwenda4@huawei.com> # message auto-generated for no-merge-commit merge: !8095 merge fix into master fix: 补充 inplace_apply_keras_momentum 和 lp_norm_update 算子 tiling 校验 Created-by: Davon14272 Commit-by: Davon14272 Merged-by: cann-robot Description: ## 描述 <!--在这里详细描述你的改动,包括改动的原因和所采取的方法。--> 补充 inplace_apply_keras_momentum 和 lp_norm_update 算子 tiling 中9维tensor校验 以及数据类型的异常值校验 ## 关联的Issue <!-- 如果这个PR是为了解决特定的Issue,请在这里提供Issue链接。例如:关联Issue #000--> [#4447](https://gitcode.com/cann/ops-nn/issues/4447) ## 测试 <!--描述进行了哪些测试来验证你的改动。--> ## 文档更新 <!--如果这个PR包含文档的更新,请在这里指出。例如:更新了README.md文件。--> ## 类型标签 <!-- [x] 表示选中 --> - [x] Bug修复 - [ ] 新特性 - [ ] 性能优化 - [ ] 文档更新 - [ ] 其他,请描述: ## AI/Agent生成声明 <!-- [x] 表示选中 --> - [x] AI辅助编写 See merge request: cann/ops-nn!8095 | 1 个月前 | |
[CANNBot]新增lp_norm_update_v2算子支持Ascend950 Co-authored-by: chen_chenn<chenchen167@huawei.com> # message auto-generated for no-merge-commit merge: !7527 merge LpNromUpdateV2 into master [CANNBot]新增lp_norm_update_v2算子支持Ascend950 Created-by: chen_chenn Commit-by: chen_chenn Merged-by: cann-robot Description: ## 描述 新增lp_norm_update_v2算子支持Ascend950 ## 关联的Issue https://gitcode.com/cann/ops-nn/issues/4104 LpNormUpdateV2 是 torch.linalg.vector_norm 的"取根"阶段:接收归约结果 x=Σ|x|^p,按 p 选分支(0/1/±inf→恒等,2→sqrt,其他→exp(ln(x)/p)),再与 epsilon 取 max。 ## 测试 TTK 冒烟:23564 冒烟:7738 ## 文档更新 ## 类型标签 - [ ] Bug修复 - [x] 新特性 - [ ] 性能优化 - [ ] 文档更新 - [ ] 其他,请描述: ## AI/Agent生成声明 - [x] AI辅助编写 See merge request: cann/ops-nn!7527 | 2 个月前 | |
【SoftmaxV2&LogSoftmaxV2&LpNormV2】打印确定性级别 Co-authored-by: zhang-song-rui<zhangsongrui@h-partners.com> # message auto-generated for no-merge-commit merge: !8091 merge master into master 【SoftmaxV2&LogSoftmaxV2&LpNormV2】打印确定性级别 Created-by: zhang-song-rui Commit-by: zhang-song-rui Merged-by: cann-robot Description: ## 描述 本PR为SoftmaxV2、LogSoftmaxV2和LpNormV2补充确定性级别DEBUG日志。 当算子Tiling读取并使用 GetDeterministicLevel()参数时,伴随打印实际获取的确定性级别: text deterministic_level=0/1/2/3 具体改动: - SoftmaxV2 / LogSoftmaxV2:在共用的SoftmaxV2TilingBase::GetShapeAttrsInfo中增加日志,两个算子均覆盖; - LpNormV2:在LpNormV2Tiling::TilingReduce读取并使用确定性级别时增加日志; - 日志级别统一使用OP_LOGD; - 直接将GetDeterministicLevel()返回值传入日志,不新增业务变量; - 原有确定性级别判断、Tiling路由和Kernel计算逻辑均未修改。 ## 关联的Issue 无。 ## 测试 - git diff --check检查通过; - 修改共涉及2个文件,仅新增2行DEBUG日志; - 已确认GetDeterministicLevel()返回类型为int32_t,与%d日志格式匹配; - 通过PR评论/compile触发编译验证。 ## 文档更新 无。 ## 类型标签 - [ ] Bug修复 - [ ] 新特性 - [ ] 性能优化 - [ ] 文档更新 - [x] 其他:日志增强 ## AI/Agent生成声明 - [ ] AI辅助编写 See merge request: cann/ops-nn!8091 | 1 个月前 | |
modified md files (The product filtering tag is added to the aclnn*.md files of the forech and norm classes) Co-authored-by: zhaozhoujun520<zhaozhoujun@huawei.com> # message auto-generated for no-merge-commit merge: !7858 merge master into master modified md files (The product filtering tag is added to the aclnn*.md files of the forech and norm classes) Created-by: gitee-duhuiping Commit-by: zhaozhoujun520 Merged-by: cann-robot Description: ## 描述 The product filtering tag is added to the aclnn*.md files of the forech and norm classes. ## 关联的Issue [#4263](https://gitcode.com/cann/ops-nn/issues/4263) ## 测试 Only involves updating the MD document description, does not involve testing. ## 文档更新 aclnn*.md ## 类型标签 <!-- [x] 表示选中 --> - [ ] Bug修复 - [ ] 新特性 - [ ] 性能优化 - [x] 文档更新 - [ ] 其他,请描述: ## AI/Agent生成声明 <!-- [x] 表示选中 --> - [ ] AI辅助编写 See merge request: cann/ops-nn!7858 | 1 个月前 | |
新增 MSELossV2/PoissonNllLoss/MultiAddRmsNormDynamicQuant算子实现 Co-authored-by: tangpingchuan<tangpingchuan@huawei.com> # message auto-generated for no-merge-commit merge: !7910 merge feat/poisson-nll-loss-arch35 into master 新增 MSELossV2/PoissonNllLoss/MultiAddRmsNormDynamicQuant算子实现 Created-by: zl_hw Commit-by: tangpingchuan Merged-by: cann-robot Description: ## 描述 新增 MSELossV2/PoissonNllLoss/MultiAddRmsNormDynamicQuant下一代算子实现 ## 关联的Issue https://gitcode.com/cann/ops-nn/issues/4372 ## 测试 ut/st/冒烟 ## 文档更新 README ## 类型标签 <!-- [x] 表示选中 --> - [ ] Bug修复 - [x] 新特性 - [ ] 性能优化 - [ ] 文档更新 - [ ] 其他,请描述: ## AI/Agent生成声明 <!-- [x] 表示选中 --> - [x] AI辅助编写 See merge request: cann/ops-nn!7910 | 1 个月前 | |
arch35: DataCopyExtParams迁移及文档错误码修正 Co-authored-by: raoliang_sac<raoliang4@huawei.com> # message auto-generated for no-merge-commit merge: !7482 merge cherry-pick-mr-7319-1784000275331-auto into master arch35: DataCopyExtParams迁移及文档错误码修正 Created-by: raoliang_sac Commit-by: raoliang_sac Merged-by: cann-robot Description: https://gitcode.com/cann/ops-nn/issues/4015 ## 改动内容 ### 1. DataCopyParams → DataCopyExtParams 迁移 解决 uint16 在大 UB(如 V121 384KB)下溢出问题,blockLen/srcStride/dstStride 升级为 uint32。涉及 arch35 kernel 文件: - add_rms_norm_dynamic_mx_quant arch35 (fp8/fp4 split_r) - rms_norm_quant_v2 arch35 (regbase_recompute) - rms_norm_dynamic_mx_quant arch35 (recompute) 配套适配:DataCopyPadParams → DataCopyPadExtParams<T_X> ### 2. C-style cast 修复 add_rms_norm_quant_tiling_arch35.cpp 中 (int64_t) → static_cast<int64_t>,符合 G.EXP.14-CPP 规范 ### 3. 文档错误码修正 3 个 rmsnorm+quant 算子文档中 ACLNN_ERR_INNER_TILING_ERROR(561002) 改为 ACLNN_ERR_INNER_NULLPTR(561103): - add_rms_norm_dynamic_mx_quant - rms_norm_dynamic_mx_quant - rms_norm_quant_v3 ### 4. 修复 GCC 14.2 ICE 参考 https://gitcode.com/cann/community/issues/157 ,将 castTrait 定义从模板函数内部 static constexpr 提取到命名空间作用域,规避 GCC 14.2 模板实例化时 ICE: - add_rms_norm_dynamic_mx_quant_common.h - rms_norm_dynamic_mx_quant_common.h ## 涉及文件(10个,全部 arch35) | 文件 | 改动内容 | |------|--------| | add_rms_norm_dynamic_mx_quant arch35 common.h | GCC14 ICE 修复 + DataCopyExtParams迁移 | | add_rms_norm_dynamic_mx_quant arch35 fp8_split_r.h | DataCopyExtParams迁移 | | add_rms_norm_dynamic_mx_quant arch35 fp4_split_r.h | DataCopyExtParams迁移 | | add_rms_norm_dynamic_mx_quant docs | 错误码修正 | | add_rms_norm_quant tiling_arch35.cpp | C-style cast修复 | | rms_norm_dynamic_mx_quant arch35 common.h | GCC14 ICE 修复 | | rms_norm_dynamic_mx_quant arch35 recompute.h | DataCopyExtParams迁移 | | rms_norm_dynamic_mx_quant docs | 错误码修正 | | rms_norm_quant_v2 arch35 regbase_recompute.h | DataCopyExtParams迁移 | | rms_norm_quant_v3 docs | 错误码修正 | See merge request: cann/ops-nn!7482 | 2 个月前 | |
format cpp Co-authored-by: yang-di52<yangdi52@huawei.com> # message auto-generated for no-merge-commit merge: !6784 merge issue_fix into master format cpp Created-by: yang-di52 Commit-by: yang-di52 Merged-by: cann-robot Description: ## 描述 批量刷新cpp代码格式 ## 关联的Issue [#3791](https://gitcode.com/cann/ops-nn/issues/3791) ## 测试 <!--描述进行了哪些测试来验证你的改动。--> ## 文档更新 <!--如果这个PR包含文档的更新,请在这里指出。例如:更新了README.md文件。--> ## 类型标签 <!-- [x] 表示选中 --> - [ ] Bug修复 - [ ] 新特性 - [ ] 性能优化 - [ ] 文档更新 - [x] 其他,请描述:代码格式化 ## AI/Agent生成声明 <!-- [x] 表示选中 --> - [ ] AI辅助编写 See merge request: cann/ops-nn!6784 | 2 个月前 | |
modified md files (The product filtering tag is added to the aclnn*.md files of the forech and norm classes) Co-authored-by: zhaozhoujun520<zhaozhoujun@huawei.com> # message auto-generated for no-merge-commit merge: !7858 merge master into master modified md files (The product filtering tag is added to the aclnn*.md files of the forech and norm classes) Created-by: gitee-duhuiping Commit-by: zhaozhoujun520 Merged-by: cann-robot Description: ## 描述 The product filtering tag is added to the aclnn*.md files of the forech and norm classes. ## 关联的Issue [#4263](https://gitcode.com/cann/ops-nn/issues/4263) ## 测试 Only involves updating the MD document description, does not involve testing. ## 文档更新 aclnn*.md ## 类型标签 <!-- [x] 表示选中 --> - [ ] Bug修复 - [ ] 新特性 - [ ] 性能优化 - [x] 文档更新 - [ ] 其他,请描述: ## AI/Agent生成声明 <!-- [x] 表示选中 --> - [ ] AI辅助编写 See merge request: cann/ops-nn!7858 | 1 个月前 | |
docs: fix errors in aclnn API examples Co-authored-by: Chen_HaoWen<chenhaowen12@huawei.com> # message auto-generated for no-merge-commit merge: !7883 merge docs-fix-md-20260723-master into master docs: fix errors in aclnn API examples Created-by: Chen_HaoWen Commit-by: Chen_HaoWen Merged-by: cann-robot Description: ## 描述 修正 master 分支中 aclnn API 文档及对应 examples 的文本错误,保证文档代码片段与示例源文件一致: - 修正 aclnnAddLayerNormQuantV2 日志中的 aclrtSetDevicefailed 和 Deviceto 拼写问题。 - 将 aclnnInplaceRenorm 调用失败日志中的接口名由 aclnnRenorm 修正为 aclnnInplaceRenorm。 - 修正 aclnnRmsNormQuant 示例中的接口名注释,并移除未使用的 aclScalar 描述。 - 同步更新 3 个文档文件和 3 个 examples 文件,不涉及算子功能逻辑变更。 ## 关联的Issue Closes #4287 ## 测试 - 已执行 git diff --check origin/master...HEAD,检查通过。 - 已定点检查 6 个目标文件,确认旧错误文本不再残留。 - 本次仅修改文档代码片段、日志字符串和注释,未运行算子构建或功能测试。 ## 文档更新 - norm/add_layer_norm_quant_v2/docs/aclnnAddLayerNormQuantV2.md - norm/add_layer_norm_quant_v2/examples/test_aclnn_add_layer_norm_quant_v2.cpp - norm/renorm/docs/aclnnRenorm&aclnnInplaceRenorm.md - norm/renorm/examples/test_aclnn_inplace_renorm.cpp - norm/rms_norm_quant/docs/aclnnRmsNormQuant.md - norm/rms_norm_quant/examples/test_aclnn_rms_norm_quant.cpp ## 类型标签 <!-- [x] 表示选中 --> - [ ] Bug修复 - [ ] 新特性 - [ ] 性能优化 - [x] 文档更新 - [ ] 其他,请描述: ## AI/Agent生成声明 <!-- [x] 表示选中 --> - [x] AI辅助编写 See merge request: cann/ops-nn!7883 | 1 个月前 | |
modified md files (The product filtering tag is added to the aclnn*.md files of the forech and norm classes) Co-authored-by: zhaozhoujun520<zhaozhoujun@huawei.com> # message auto-generated for no-merge-commit merge: !7858 merge master into master modified md files (The product filtering tag is added to the aclnn*.md files of the forech and norm classes) Created-by: gitee-duhuiping Commit-by: zhaozhoujun520 Merged-by: cann-robot Description: ## 描述 The product filtering tag is added to the aclnn*.md files of the forech and norm classes. ## 关联的Issue [#4263](https://gitcode.com/cann/ops-nn/issues/4263) ## 测试 Only involves updating the MD document description, does not involve testing. ## 文档更新 aclnn*.md ## 类型标签 <!-- [x] 表示选中 --> - [ ] Bug修复 - [ ] 新特性 - [ ] 性能优化 - [x] 文档更新 - [ ] 其他,请描述: ## AI/Agent生成声明 <!-- [x] 表示选中 --> - [ ] AI辅助编写 See merge request: cann/ops-nn!7858 | 1 个月前 | |
fix: comment out dlog_setlevel calls in UT tests for target operators Co-authored-by: liangyuhua<liangyuhua4@huawei.com> # message auto-generated for no-merge-commit merge: !8042 merge fix/comment-out-dlog-setlevel into master fix: comment out dlog_setlevel calls in UT tests for target operators Created-by: liangyuhua Commit-by: liangyuhua Merged-by: cann-robot Description: ## 描述 删除 11 个目标算子 UT 测试文件中所有 dlog_setlevel 调用(含已注释的),避免 UT 运行时修改全局日志级别影响其他用例,同时清理无用注释代码。修复 batch_norm_grad_v3 中变量名 workspace_size_holer 拼写错误为 workspace_size_holder。 涉及的算子及文件: | 模块 | 算子 | 文件 | 删除数量 | |------|------|------|---------| | activation | ConfusionSoftmaxGrad | test_confusion_softmax_grad_tiling.cpp | 6 | | activation | LogSoftmaxGrad | test_log_softmax_grad_tiling.cpp | 14 | | activation | SoftmaxGrad | test_softmax_grad_tiling.cpp | 12 | | index | BroadcastGradientArgs | test_broadcast_gradient_args_tiling.cpp | 32 | | norm | BatchNorm | test_batch_norm_tiling.cpp | 3 | | norm | BatchNormGrad | test_batch_norm_grad_tiling.cpp | 48 | | norm | BatchNormGradV3 | test_batch_norm_grad_v3_tiling.cpp | 44 | | norm | LayerNorm | test_layer_norm_tiling.cpp | 2 | | norm | LayerNormV3 | test_layer_norm_v3_tiling.cpp | 8 | | norm | RmsNormDynamicMxQuant | test_rms_norm_dynamic_mx_quant_infershape.cpp | 2 | | norm | SyncBatchNormGatherStats | test_sync_batch_norm_gather_stats_tiling.cpp | 12 | 共计 11 个文件,删除 183 处 dlog_setlevel 调用。 额外修复: - batch_norm_grad_v3 文件中 46 处变量名 workspace_size_holer 拼写错误修正为 workspace_size_holder - layer_norm_v3 文件 license header 从旧格式更新为标准格式 注:RmsNormGrad、SoftmaxV2、LogSoftmaxV2 的 dlog_setlevel 删除已通过前置 PR 合入 master,本 PR 不再重复修改。 ## 关联的Issue #4396 ## 测试 - [x] pre-commit 全部通过(clang-format + OAT + codespell 等,11 个文件手动扫描确认) - [x] 仅删除 dlog_setlevel 调用及修复变量名拼写,不影响测试逻辑 ## 文档更新 无需更新文档 ## 类型标签 - [x] Bug修复 - [ ] 新特性 - [ ] 性能优化 - [ ] 文档更新 - [ ] 其他,请描述: ## AI/Agent生成声明 - [x] AI辅助编写 See merge request: cann/ops-nn!8042 | 1 个月前 | |
将rms_norm_dynamic_quant算子torch_extension文件内置于算子目录 Co-authored-by: LuckySun<sunwenlong8@huawei.com> # message auto-generated for no-merge-commit merge: !8128 merge pta_move into master 将rms_norm_dynamic_quant算子torch_extension文件内置于算子目录 Created-by: LuckySun Commit-by: LuckySun Merged-by: cann-robot Description: ## 描述 <!--在这里详细描述你的改动,包括改动的原因和所采取的方法。--> 将rms_norm_dynamic_quant算子torch_extension文件从ops-nn/torch_extension迁移到算子自己的目录下 ## 关联的Issue <!-- 如果这个PR是为了解决特定的Issue,请在这里提供Issue链接。例如:关联Issue #000--> https://gitcode.com/cann/ops-nn/issues/4115 ## 测试 <!--描述进行了哪些测试来验证你的改动。--> 构建整包后 bash build.sh --torch_extension 安装 pip3 install build_out/cann_ops_nn-1.0.0-py3-none-any.whl --no-deps 执行测试脚本成功 ## 文档更新 <!--如果这个PR包含文档的更新,请在这里指出。例如:更新了README.md文件。--> ## 类型标签 <!-- [x] 表示选中 --> - [ ] Bug修复 - [ ] 新特性 - [ ] 性能优化 - [ ] 文档更新 - [x] 其他,请描述: ## AI/Agent生成声明 <!-- [x] 表示选中 --> - [ ] AI辅助编写 See merge request: cann/ops-nn!8128 | 1 个月前 | |
batch_norm_v3/rms_norm_grad : 还原 infer/dgamma 计算的内联写法 Co-authored-by: rk<wangpengbo26@huawei.com> # message auto-generated for no-merge-commit merge: !8107 merge cleancode9 into master batch_norm_v3/rms_norm_grad : 还原 infer/dgamma 计算的内联写法 Created-by: wangpengbo26 Commit-by: rk Merged-by: cann-robot Description: ## 描述 将 batch_norm_v3 三个 infer 变体( InferLastChannelContinuousA、InferLastChannelSmallA、InferSmallAB1)的 Compute 方法与 rms_norm_grad 的 CalcDgamma 计算路径由 helper 间接调用改回内联实现,去掉 InferComputeImpl、ComputePreDgamma 两个间接层,使 arch35 设备侧计算路径更直观。 ### 改动原因 此前 infer Compute 统一通过 InferComputeImpl 模板函数间接调用 VFNormalize,rms_norm_grad dgamma 通过 ComputePreDgamma 间接组装 EnQue/DeQue/计算/Free 流程。间接层增加了阅读成本:调用点看不到实际的数据搬运与计算顺序,需跳转 helper 才能理解设备侧行为。 ### 改动方法 - **batch_norm_v3 三个 infer 变体**:Compute 内联 DeQue → AllocTensor → Get → GetPhyAddr → VFNormalize → EnQue → FreeTensor 全流程,删除对 InferComputeImpl 的调用;同时移除为暴露 VFNormalize 而插入的 public:/private: 访问控制切换,恢复为类内私有方法。 - **batch_norm_v3_regbase_common.h**:删除不再被引用的 InferComputeImpl 模板函数(-26 行)。 - **rms_norm_grad_regbase_dgamma.h**:删除 ComputePreDgamma 方法,将其逻辑(EnQue/DeQue/GetPhyAddr/VFCalcPreDgamma/FreeTensor)内联到 CalcDgamma 及两处循环调用点;dgammaOutAddr 由输出参数改为局部变量。 不改变计算逻辑、计算顺序与内存分配顺序。 ## 关联的Issue - https://gitcode.com/cann/ops-nn/issues/4444 ## 测试 pass ## 文档更新 无。 ## 类型标签 - [ ] Bug修复 - [ ] 新特性 - [ ] 性能优化 - [ ] 文档更新 - [x] 其他,请描述:回退还原内联写法 ## AI/Agent生成声明 - [ ] AI辅助编写 See merge request: cann/ops-nn!8107 | 1 个月前 | |
modified md files (The product filtering tag is added to the aclnn*.md files of the forech and norm classes) Co-authored-by: zhaozhoujun520<zhaozhoujun@huawei.com> # message auto-generated for no-merge-commit merge: !7858 merge master into master modified md files (The product filtering tag is added to the aclnn*.md files of the forech and norm classes) Created-by: gitee-duhuiping Commit-by: zhaozhoujun520 Merged-by: cann-robot Description: ## 描述 The product filtering tag is added to the aclnn*.md files of the forech and norm classes. ## 关联的Issue [#4263](https://gitcode.com/cann/ops-nn/issues/4263) ## 测试 Only involves updating the MD document description, does not involve testing. ## 文档更新 aclnn*.md ## 类型标签 <!-- [x] 表示选中 --> - [ ] Bug修复 - [ ] 新特性 - [ ] 性能优化 - [x] 文档更新 - [ ] 其他,请描述: ## AI/Agent生成声明 <!-- [x] 表示选中 --> - [ ] AI辅助编写 See merge request: cann/ops-nn!7858 | 1 个月前 | |
RmsNormQuant输出空tensor处理报错 Co-authored-by: 任如海<renruhai1@huawei.com> # message auto-generated for no-merge-commit merge: !7957 merge master into master RmsNormQuant输出空tensor处理报错 Created-by: renruhai Commit-by: 任如海 Merged-by: cann-robot Description: ## 描述 <!--在这里详细描述你的改动,包括改动的原因和所采取的方法。--> ## 关联的Issue <!-- 如果这个PR是为了解决特定的Issue,请在这里提供Issue链接。例如:关联Issue #000--> ## 测试 <!--描述进行了哪些测试来验证你的改动。--> ## 文档更新 <!--如果这个PR包含文档的更新,请在这里指出。例如:更新了README.md文件。--> ## 类型标签 <!-- [x] 表示选中 --> - [x] Bug修复 - [ ] 新特性 - [ ] 性能优化 - [ ] 文档更新 - [ ] 其他,请描述: ## AI/Agent生成声明 <!-- [x] 表示选中 --> - [ ] AI辅助编写 See merge request: cann/ops-nn!7957 | 1 个月前 | |
arch35: DataCopyExtParams迁移及文档错误码修正 Co-authored-by: raoliang_sac<raoliang4@huawei.com> # message auto-generated for no-merge-commit merge: !7482 merge cherry-pick-mr-7319-1784000275331-auto into master arch35: DataCopyExtParams迁移及文档错误码修正 Created-by: raoliang_sac Commit-by: raoliang_sac Merged-by: cann-robot Description: https://gitcode.com/cann/ops-nn/issues/4015 ## 改动内容 ### 1. DataCopyParams → DataCopyExtParams 迁移 解决 uint16 在大 UB(如 V121 384KB)下溢出问题,blockLen/srcStride/dstStride 升级为 uint32。涉及 arch35 kernel 文件: - add_rms_norm_dynamic_mx_quant arch35 (fp8/fp4 split_r) - rms_norm_quant_v2 arch35 (regbase_recompute) - rms_norm_dynamic_mx_quant arch35 (recompute) 配套适配:DataCopyPadParams → DataCopyPadExtParams<T_X> ### 2. C-style cast 修复 add_rms_norm_quant_tiling_arch35.cpp 中 (int64_t) → static_cast<int64_t>,符合 G.EXP.14-CPP 规范 ### 3. 文档错误码修正 3 个 rmsnorm+quant 算子文档中 ACLNN_ERR_INNER_TILING_ERROR(561002) 改为 ACLNN_ERR_INNER_NULLPTR(561103): - add_rms_norm_dynamic_mx_quant - rms_norm_dynamic_mx_quant - rms_norm_quant_v3 ### 4. 修复 GCC 14.2 ICE 参考 https://gitcode.com/cann/community/issues/157 ,将 castTrait 定义从模板函数内部 static constexpr 提取到命名空间作用域,规避 GCC 14.2 模板实例化时 ICE: - add_rms_norm_dynamic_mx_quant_common.h - rms_norm_dynamic_mx_quant_common.h ## 涉及文件(10个,全部 arch35) | 文件 | 改动内容 | |------|--------| | add_rms_norm_dynamic_mx_quant arch35 common.h | GCC14 ICE 修复 + DataCopyExtParams迁移 | | add_rms_norm_dynamic_mx_quant arch35 fp8_split_r.h | DataCopyExtParams迁移 | | add_rms_norm_dynamic_mx_quant arch35 fp4_split_r.h | DataCopyExtParams迁移 | | add_rms_norm_dynamic_mx_quant docs | 错误码修正 | | add_rms_norm_quant tiling_arch35.cpp | C-style cast修复 | | rms_norm_dynamic_mx_quant arch35 common.h | GCC14 ICE 修复 | | rms_norm_dynamic_mx_quant arch35 recompute.h | DataCopyExtParams迁移 | | rms_norm_dynamic_mx_quant docs | 错误码修正 | | rms_norm_quant_v2 arch35 regbase_recompute.h | DataCopyExtParams迁移 | | rms_norm_quant_v3 docs | 错误码修正 | See merge request: cann/ops-nn!7482 | 2 个月前 | |
modified md files (The product filtering tag is added to the aclnn*.md files of the forech and norm classes) Co-authored-by: zhaozhoujun520<zhaozhoujun@huawei.com> # message auto-generated for no-merge-commit merge: !7858 merge master into master modified md files (The product filtering tag is added to the aclnn*.md files of the forech and norm classes) Created-by: gitee-duhuiping Commit-by: zhaozhoujun520 Merged-by: cann-robot Description: ## 描述 The product filtering tag is added to the aclnn*.md files of the forech and norm classes. ## 关联的Issue [#4263](https://gitcode.com/cann/ops-nn/issues/4263) ## 测试 Only involves updating the MD document description, does not involve testing. ## 文档更新 aclnn*.md ## 类型标签 <!-- [x] 表示选中 --> - [ ] Bug修复 - [ ] 新特性 - [ ] 性能优化 - [x] 文档更新 - [ ] 其他,请描述: ## AI/Agent生成声明 <!-- [x] 表示选中 --> - [ ] AI辅助编写 See merge request: cann/ops-nn!7858 | 1 个月前 | |
add cases Co-authored-by: zhaogrug<zhaohai16@h-partners.com> # message auto-generated for no-merge-commit merge: !8026 merge the_rest_of_cases into master add cases Created-by: zhaogrug Commit-by: zhaogrug Merged-by: cann-robot Description: ## 描述 新增仓内新版ttk用例 <!--在这里详细描述你的改动,包括改动的原因和所采取的方法。--> ## 关联的Issue [#4386](https://gitcode.com/cann/ops-nn/issues/4386) <!-- 如果这个PR是为了解决特定的Issue,请在这里提供Issue链接。例如:关联Issue #000--> ## 测试 冒烟测试,本地验证 <!--描述进行了哪些测试来验证你的改动。--> ## 文档更新 <!--如果这个PR包含文档的更新,请在这里指出。例如:更新了README.md文件。--> ## 类型标签 <!-- [x] 表示选中 --> - [ ] Bug修复 - [ ] 新特性 - [ ] 性能优化 - [ ] 文档更新 - [x] 其他,请描述:用例添加 ## AI/Agent生成声明 <!-- [x] 表示选中 --> - [ ] AI辅助编写 See merge request: cann/ops-nn!8026 | 1 个月前 | |
modified md files (The product filtering tag is added to the aclnn*.md files of the forech and norm classes) Co-authored-by: zhaozhoujun520<zhaozhoujun@huawei.com> # message auto-generated for no-merge-commit merge: !7858 merge master into master modified md files (The product filtering tag is added to the aclnn*.md files of the forech and norm classes) Created-by: gitee-duhuiping Commit-by: zhaozhoujun520 Merged-by: cann-robot Description: ## 描述 The product filtering tag is added to the aclnn*.md files of the forech and norm classes. ## 关联的Issue [#4263](https://gitcode.com/cann/ops-nn/issues/4263) ## 测试 Only involves updating the MD document description, does not involve testing. ## 文档更新 aclnn*.md ## 类型标签 <!-- [x] 表示选中 --> - [ ] Bug修复 - [ ] 新特性 - [ ] 性能优化 - [x] 文档更新 - [ ] 其他,请描述: ## AI/Agent生成声明 <!-- [x] 表示选中 --> - [ ] AI辅助编写 See merge request: cann/ops-nn!7858 | 1 个月前 | |
fix: comment out dlog_setlevel calls in UT tests for target operators Co-authored-by: liangyuhua<liangyuhua4@huawei.com> # message auto-generated for no-merge-commit merge: !8042 merge fix/comment-out-dlog-setlevel into master fix: comment out dlog_setlevel calls in UT tests for target operators Created-by: liangyuhua Commit-by: liangyuhua Merged-by: cann-robot Description: ## 描述 删除 11 个目标算子 UT 测试文件中所有 dlog_setlevel 调用(含已注释的),避免 UT 运行时修改全局日志级别影响其他用例,同时清理无用注释代码。修复 batch_norm_grad_v3 中变量名 workspace_size_holer 拼写错误为 workspace_size_holder。 涉及的算子及文件: | 模块 | 算子 | 文件 | 删除数量 | |------|------|------|---------| | activation | ConfusionSoftmaxGrad | test_confusion_softmax_grad_tiling.cpp | 6 | | activation | LogSoftmaxGrad | test_log_softmax_grad_tiling.cpp | 14 | | activation | SoftmaxGrad | test_softmax_grad_tiling.cpp | 12 | | index | BroadcastGradientArgs | test_broadcast_gradient_args_tiling.cpp | 32 | | norm | BatchNorm | test_batch_norm_tiling.cpp | 3 | | norm | BatchNormGrad | test_batch_norm_grad_tiling.cpp | 48 | | norm | BatchNormGradV3 | test_batch_norm_grad_v3_tiling.cpp | 44 | | norm | LayerNorm | test_layer_norm_tiling.cpp | 2 | | norm | LayerNormV3 | test_layer_norm_v3_tiling.cpp | 8 | | norm | RmsNormDynamicMxQuant | test_rms_norm_dynamic_mx_quant_infershape.cpp | 2 | | norm | SyncBatchNormGatherStats | test_sync_batch_norm_gather_stats_tiling.cpp | 12 | 共计 11 个文件,删除 183 处 dlog_setlevel 调用。 额外修复: - batch_norm_grad_v3 文件中 46 处变量名 workspace_size_holer 拼写错误修正为 workspace_size_holder - layer_norm_v3 文件 license header 从旧格式更新为标准格式 注:RmsNormGrad、SoftmaxV2、LogSoftmaxV2 的 dlog_setlevel 删除已通过前置 PR 合入 master,本 PR 不再重复修改。 ## 关联的Issue #4396 ## 测试 - [x] pre-commit 全部通过(clang-format + OAT + codespell 等,11 个文件手动扫描确认) - [x] 仅删除 dlog_setlevel 调用及修复变量名拼写,不影响测试逻辑 ## 文档更新 无需更新文档 ## 类型标签 - [x] Bug修复 - [ ] 新特性 - [ ] 性能优化 - [ ] 文档更新 - [ ] 其他,请描述: ## AI/Agent生成声明 - [x] AI辅助编写 See merge request: cann/ops-nn!8042 | 1 个月前 | |
modified md file(aclnn*.md and README.md) Co-authored-by: duhuiping<duhuiping@h-partners.com> # message auto-generated for no-merge-commit merge: !7119 merge master into master modified md file(aclnn*.md and README.md) Created-by: gitee-duhuiping Commit-by: duhuiping Merged-by: cann-robot Description: ## 描述 1. Updated the constraints on the C and group parameters in aclnnGroupNormBackward.md. 2. Updated the calculation formula and parameter types of the lp_norm_v2 operator, and updated the parameter description of aclnn. 3. Updated the case of parameter names in the README.md file of renorm. 4. Updated the calculation formula of sync_batch_norm_backward_elemt and added the constraints on the combination of data types in the README file. 5. Updated the attribute parameter types and default values in the README file of sync_batch_norm_backward_elemt. ## 关联的Issue [#3701](https://gitcode.com/cann/ops-nn/issues/3701) [#3702](https://gitcode.com/cann/ops-nn/issues/3702) [#3693](https://gitcode.com/cann/ops-nn/issues/3693) ## 测试 Only involves updating the MD document description, does not involve testing. ## 文档更新 docs/zh/op_list.md norm/group_norm_grad/docs/aclnnGroupNormBackward.md norm/lp_norm_v2/README.md norm/lp_norm_v2/docs/aclnnNorm.md norm/renorm/README.md norm/sync_batch_norm_backward_elemt/README.md norm/sync_batch_norm_backward_elemt/docs/aclnnBatchNormElemtBackward.md norm/sync_batch_norm_backward_elemt/docs/aclnnBatchNormElemtBackward.md ## 类型标签 <!-- [x] 表示选中 --> - [ ] Bug修复 - [ ] 新特性 - [ ] 性能优化 - [x] 文档更新 - [ ] 其他,请描述: ## AI/Agent生成声明 <!-- [x] 表示选中 --> - [ ] AI辅助编写 See merge request: cann/ops-nn!7119 | 2 个月前 | |
modified md files (The product filtering tag is added to the aclnn*.md files of the forech and norm classes) Co-authored-by: zhaozhoujun520<zhaozhoujun@huawei.com> # message auto-generated for no-merge-commit merge: !7858 merge master into master modified md files (The product filtering tag is added to the aclnn*.md files of the forech and norm classes) Created-by: gitee-duhuiping Commit-by: zhaozhoujun520 Merged-by: cann-robot Description: ## 描述 The product filtering tag is added to the aclnn*.md files of the forech and norm classes. ## 关联的Issue [#4263](https://gitcode.com/cann/ops-nn/issues/4263) ## 测试 Only involves updating the MD document description, does not involve testing. ## 文档更新 aclnn*.md ## 类型标签 <!-- [x] 表示选中 --> - [ ] Bug修复 - [ ] 新特性 - [ ] 性能优化 - [x] 文档更新 - [ ] 其他,请描述: ## AI/Agent生成声明 <!-- [x] 表示选中 --> - [ ] AI辅助编写 See merge request: cann/ops-nn!7858 | 1 个月前 | |
format cpp Co-authored-by: yang-di52<yangdi52@huawei.com> # message auto-generated for no-merge-commit merge: !6784 merge issue_fix into master format cpp Created-by: yang-di52 Commit-by: yang-di52 Merged-by: cann-robot Description: ## 描述 批量刷新cpp代码格式 ## 关联的Issue [#3791](https://gitcode.com/cann/ops-nn/issues/3791) ## 测试 <!--描述进行了哪些测试来验证你的改动。--> ## 文档更新 <!--如果这个PR包含文档的更新,请在这里指出。例如:更新了README.md文件。--> ## 类型标签 <!-- [x] 表示选中 --> - [ ] Bug修复 - [ ] 新特性 - [ ] 性能优化 - [ ] 文档更新 - [x] 其他,请描述:代码格式化 ## AI/Agent生成声明 <!-- [x] 表示选中 --> - [ ] AI辅助编写 See merge request: cann/ops-nn!6784 | 2 个月前 | |
Format update: Adjusted the license description format in all relevant files. Co-authored-by: jiangqi<jiangqi47@h-partners.com> # message auto-generated for no-merge-commit merge: !365 merge license5 into master Format update: Adjusted the license description format in all relevant files. Created-by: jiangqi2025 Commit-by: jiangqi Merged-by: turing_project1 Description: ## 描述 <!--在这里详细描述你的改动,包括改动的原因和所采取的方法。--> ## 关联的Issue <!-- 如果这个PR是为了解决特定的Issue,请在这里提供Issue链接。例如:关联Issue #123--> <!-- 如果这个PR是为了解决特定的问题单,请在这里描述问题单单号。--> ## 测试 <!--描述进行了哪些测试来验证你的改动。包括但不限于二级冒烟、算子泛化等。--> ## 文档更新 <!--如果这个PR包含文档的更新,请在这里指出。例如:更新了README.md文件。--> ## 类型标签 <!-- [x] 表示选中 --> - [ ] Bug修复 - [ ] 新特性 - [ ] 性能优化 - [ ] 文档更新 - [ ] 其他,请描述: See merge request: cann/ops-nn!365 | 9 个月前 |
| 文件 | 最后提交记录 | 最后更新时间 |
|---|---|---|
| 1 个月前 | ||
| 1 个月前 | ||
| 1 个月前 | ||
| 1 个月前 | ||
| 1 个月前 | ||
| 1 个月前 | ||
| 1 个月前 | ||
| 1 个月前 | ||
| 1 个月前 | ||
| 1 个月前 | ||
| 1 个月前 | ||
| 1 个月前 | ||
| 2 个月前 | ||
| 1 个月前 | ||
| 1 个月前 | ||
| 1 个月前 | ||
| 1 个月前 | ||
| 1 个月前 | ||
| 1 个月前 | ||
| 1 个月前 | ||
| 1 个月前 | ||
| 1 个月前 | ||
| 2 个月前 | ||
| 1 个月前 | ||
| 1 个月前 | ||
| 2 个月前 | ||
| 1 个月前 | ||
| 1 个月前 | ||
| 1 个月前 | ||
| 1 个月前 | ||
| 1 个月前 | ||
| 1 个月前 | ||
| 1 个月前 | ||
| 1 个月前 | ||
| 1 个月前 | ||
| 1 个月前 | ||
| 1 个月前 | ||
| 1 个月前 | ||
| 1 个月前 | ||
| 1 个月前 | ||
| 1 个月前 | ||
| 1 个月前 | ||
| 1 个月前 | ||
| 1 个月前 | ||
| 1 个月前 | ||
| 1 个月前 | ||
| 1 个月前 | ||
| 1 个月前 | ||
| 1 个月前 | ||
| 1 个月前 | ||
| 2 个月前 | ||
| 1 个月前 | ||
| 1 个月前 | ||
| 1 个月前 | ||
| 2 个月前 | ||
| 2 个月前 | ||
| 1 个月前 | ||
| 1 个月前 | ||
| 1 个月前 | ||
| 1 个月前 | ||
| 1 个月前 | ||
| 1 个月前 | ||
| 1 个月前 | ||
| 1 个月前 | ||
| 2 个月前 | ||
| 1 个月前 | ||
| 1 个月前 | ||
| 1 个月前 | ||
| 1 个月前 | ||
| 2 个月前 | ||
| 1 个月前 | ||
| 2 个月前 | ||
| 9 个月前 |