| 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 个月前 |
| 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 个月前 |
| feat: rename op_api_def.h to op_api_def_nn.h Co-authored-by: chenqianyu<chenqianyu1@h-partners.com> # message auto-generated for no-merge-commit merge: !8360 merge rename_opapidef into master feat: rename op_api_def.h to op_api_def_nn.h Created-by: FishPotatoChen Commit-by: chenqianyu Merged-by: cann-robot Description: ## 描述 本次改动将 op_api/op_api_def.h 重命名为 op_api/op_api_def_nn.h,并同步更新了所有引用该头文件的源文件与测试文件中的 #include 路径,共涉及 161 个文件。 改动原因:将 op_api 定义头文件统一命名为 op_api_def_nn.h,以更好地体现其所属模块(NN 算子)的语义,便于后续与其他模块的头文件区分管理。 此外,在提交过程中发现 4 个文件(aclnn_foreach_addcmul_scalar_v2.cpp、aclnn_max_unpool3d.cpp、test_aclnn_addmv.cpp、test_aclnn_fast_batchnorm_backward.cpp)的许可证头使用了非标准的旧格式,导致 OAT 合规检查失败。本次一并将其更新为标准的 CANN 开源许可证头格式,确保通过合规校验。 ## 关联的Issue <!-- 如果这个PR是为了解决特定的Issue,请在这里提供Issue链接。例如:关联Issue #000--> https://gitcode.com/cann/ops-nn/issues/4954 ## 测试 - 通过 pre-commit 钩子校验:trailing whitespace、end-of-file-fixer、clang-format 均通过 - 通过 OAT 合规检查(161 个文件全部通过) - 本次为头文件重命名改动,不涉及逻辑变更,编译依赖关系保持不变 ## 文档更新 <!--如果这个PR包含文档的更新,请在这里指出。例如:更新了README.md文件。--> 无 ## 类型标签 <!-- [x] 表示选中 --> - [ ] Bug修复 - [ ] 新特性 - [ ] 性能优化 - [ ] 文档更新 - [x] 其他,请描述:头文件重命名与许可证头修复 ## AI/Agent生成声明 <!-- [x] 表示选中 --> - [x] AI辅助编写 See merge request: cann/ops-nn!8360 | 28 天前 |
| 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 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 个月前 |
| aclnnEmbeddingRenorm校验修改 Co-authored-by: 任如海<renruhai1@huawei.com> # message auto-generated for no-merge-commit merge: !7856 merge master into master aclnnEmbeddingRenorm校验修改 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!7856 | 1 个月前 |
| aclnnEmbeddingRenorm目录迁移 Co-authored-by: ni-zhihao<nizhihao@h-partners.com> # message auto-generated for no-merge-commit merge: !4207 merge master into master aclnnEmbeddingRenorm目录迁移 Created-by: renruhai Commit-by: ni-zhihao Merged-by: cann-robot Description: ## 描述 <!--在这里详细描述你的改动,包括改动的原因和所采取的方法。--> aclnnEmbeddingRenorm目录迁移 ## 关联的Issue <!-- 如果这个PR是为了解决特定的Issue,请在这里提供Issue链接。--> https://gitcode.com/cann/ops-nn/issues/2072 ## 测试 <!--描述进行了哪些测试来验证你的改动。--> ## 文档更新 <!--如果这个PR包含文档的更新,请在这里指出。例如:更新了README.md文件。--> ## 类型标签 <!-- [x] 表示选中 --> - [ ] Bug修复 - [ ] 新特性 - [ ] 性能优化 - [ ] 文档更新 - [x] 其他,请描述: 目录迁移 See merge request: cann/ops-nn!4207 | 4 个月前 |
| 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 个月前 |