| 文件 | 最后提交记录 | 最后更新时间 |
|---|---|---|
fix: 使用新的标准C++头文件替代旧头文件 Co-authored-by: liu-wei<liuw3@huawei.com> # message auto-generated for no-merge-commit merge: !859 merge master_coding_stype into master fix: 使用新的标准C++头文件替代旧头文件 Created-by: liu-wei Commit-by: liu-wei Merged-by: cann-robot Description: ## 描述 遵循C++编码规范2.2.1,将示例代码中的旧式C头文件替换为新的C++标准头文件。 ### 改动内容 修改多个示例代码文件的头文件引用: - examples/add_example/examples/test_geir_add_example.cpp - examples/add_example_aicpu/examples/test_geir_add_example.cpp - image/aipp/examples/arch35/test_geir_aipp.cpp - image/crop_and_resize/examples/test_geir_crop_and_resize.cpp - image/image_warp_offsets/examples/test_geir_image_warp_offsets.cpp - image/non_max_suppression_v3/examples/test_geir_non_max_suppression_v3.cpp - image/scale_and_translate/examples/test_geir_scale_and_translate.cpp - image/spatial_transformer/examples/test_geir_spatial_transformer.cpp ### 改动原因 按照C++编码规范2.2.1要求,应使用C++标准库头文件替代旧的C头文件,提升代码规范性和可移植性。 ## 关联的Issue https://gitcode.com/cann/ops-cv/issues/436 https://gitcode.com/cann/ops-cv/issues/435 https://gitcode.com/cann/ops-cv/issues/434 https://gitcode.com/cann/ops-cv/issues/433 https://gitcode.com/cann/ops-cv/issues/432 https://gitcode.com/cann/ops-cv/issues/431 https://gitcode.com/cann/ops-cv/issues/430 ## 测试 示例代码编译验证通过 ## 文档更新 无 ## 类型标签 - [ ] Bug修复 - [ ] 新特性 - [ ] 性能优化 - [ ] 重构 - [ ] 测试 - [ ] 构建/CI - [ ] 配置变更 - [ ] 文档更新 - [x] 代码清理 See merge request: cann/ops-cv!859 | 3 个月前 | |
add comments for examples. Co-authored-by: liu-wei<lovline.liuwei@huawei.com> # message auto-generated for no-merge-commit merge: !679 merge master into master add comments for examples. Created-by: liu-wei Commit-by: liu-wei Merged-by: cann-robot Description: ## 描述 为 AddExample 算子原型定义添加中文注释 "Add算子原型定义" 纯粹的文档改进,无功能变更 add_example_def.cpp - 算子定义完善 定义 AddExample 算子的输入 (x1, x2) 和输出 (y) 支持数据类型: DT_FLOAT 和 DT_INT32 支持格式: FORMAT_ND UnknownShapeFormat 配置 AutoContiguous 内存优化 多 SOC 配置支持: ascend910b, ascend910_93, ascend950 AI Core 各种动态特性配置 ## 关联的Issue 添加代码注释,不需要关联issue。 ## 测试 相关功能测试: [2026-04-07 08:03:17] add_example first input[2045] is: 1.000000, second input[2045] is: 1.000000, result[2045] is: 2.000000 [2026-04-07 08:03:17] add_example first input[2046] is: 1.000000, second input[2046] is: 1.000000, result[2046] is: 2.000000 [2026-04-07 08:03:17] add_example first input[2047] is: 1.000000, second input[2047] is: 1.000000, result[2047] is: 2.000000 [2026-04-07 08:03:18] run test_aclnn_add_example, execute samples success [2026-04-07 08:04:48] add_example result[2046] is: 2.000000 [2026-04-07 08:04:48] add_example result[2047] is: 2.000000 [2026-04-07 08:04:48] run test_aclnn_add_example_aicpu, execute samples success 基本功能测试: ascend950 : OK (112 .o) ascend910 : SKIPPED (.o) ascend310b : OK (3 .o) ascend310p : OK (19 .o) ascend910b : OK (73 .o) STATIC_BUILD : OK (cann-910b-ops-cv_9.0.0_linux-x86_64.run, cann-910b-ops-cv-static_9.0.0_linux-x86_64.tar.gz) mc62cm12a : OK (cann-mc62cm12a-ops-cv_9.0.0_linux-x86_64.run) ascend910b_install_check : OK (install/uninstall clean) ## 文档更新 不涉及文档更新 ## 类型标签 <!-- [x] 表示选中 --> - [ ] 🐛 Bug 修复 - [ ] ✨ 新特性 - [ ] ⚡ 性能优化 - [ ] ♻️ 重构 - [ ] 🧪 测试 - [ ] 📦 构建/CI - [ ] 🔧 配置变更 - [ ] 📝 文档更新 - [ ] ⬆️ 依赖升级 - [ ] 🔒 安全修复 - [ ] 🧹 代码清理 - [x] ❓ 其他,请描述:完善注释 See merge request: cann/ops-cv!679 | 4 个月前 | |
add comments for examples. Co-authored-by: liu-wei<lovline.liuwei@huawei.com> # message auto-generated for no-merge-commit merge: !679 merge master into master add comments for examples. Created-by: liu-wei Commit-by: liu-wei Merged-by: cann-robot Description: ## 描述 为 AddExample 算子原型定义添加中文注释 "Add算子原型定义" 纯粹的文档改进,无功能变更 add_example_def.cpp - 算子定义完善 定义 AddExample 算子的输入 (x1, x2) 和输出 (y) 支持数据类型: DT_FLOAT 和 DT_INT32 支持格式: FORMAT_ND UnknownShapeFormat 配置 AutoContiguous 内存优化 多 SOC 配置支持: ascend910b, ascend910_93, ascend950 AI Core 各种动态特性配置 ## 关联的Issue 添加代码注释,不需要关联issue。 ## 测试 相关功能测试: [2026-04-07 08:03:17] add_example first input[2045] is: 1.000000, second input[2045] is: 1.000000, result[2045] is: 2.000000 [2026-04-07 08:03:17] add_example first input[2046] is: 1.000000, second input[2046] is: 1.000000, result[2046] is: 2.000000 [2026-04-07 08:03:17] add_example first input[2047] is: 1.000000, second input[2047] is: 1.000000, result[2047] is: 2.000000 [2026-04-07 08:03:18] run test_aclnn_add_example, execute samples success [2026-04-07 08:04:48] add_example result[2046] is: 2.000000 [2026-04-07 08:04:48] add_example result[2047] is: 2.000000 [2026-04-07 08:04:48] run test_aclnn_add_example_aicpu, execute samples success 基本功能测试: ascend950 : OK (112 .o) ascend910 : SKIPPED (.o) ascend310b : OK (3 .o) ascend310p : OK (19 .o) ascend910b : OK (73 .o) STATIC_BUILD : OK (cann-910b-ops-cv_9.0.0_linux-x86_64.run, cann-910b-ops-cv-static_9.0.0_linux-x86_64.tar.gz) mc62cm12a : OK (cann-mc62cm12a-ops-cv_9.0.0_linux-x86_64.run) ascend910b_install_check : OK (install/uninstall clean) ## 文档更新 不涉及文档更新 ## 类型标签 <!-- [x] 表示选中 --> - [ ] 🐛 Bug 修复 - [ ] ✨ 新特性 - [ ] ⚡ 性能优化 - [ ] ♻️ 重构 - [ ] 🧪 测试 - [ ] 📦 构建/CI - [ ] 🔧 配置变更 - [ ] 📝 文档更新 - [ ] ⬆️ 依赖升级 - [ ] 🔒 安全修复 - [ ] 🧹 代码清理 - [x] ❓ 其他,请描述:完善注释 See merge request: cann/ops-cv!679 | 4 个月前 | |
add_example_aicpu修改 Co-authored-by: Ding_Jing<dingjing19@huawei.com> # message auto-generated for no-merge-commit merge: !727 merge bubgix0415 into master add_example_aicpu修改 Created-by: Ding_Jing Commit-by: Ding_Jing Merged-by: cann-robot Description: ## 描述 <!--在这里详细描述你的改动,包括改动的原因和所采取的方法。--> 本PR的具体修改内容如下: 1、修复add_example_aicpu的ut 2、ut说明中添加aicpu的kernel执行 ## 关联的Issue <!-- 如果这个PR是为了解决特定的Issue,请在这里提供Issue链接。例如:关联Issue #000--> <!-- 如果这个PR是为了解决特定的问题单,请在这里描述问题单单号。--> issue [#321](https://gitcode.com/cann/ops-cv/issues/321) ## 测试 <!--描述进行了哪些测试来验证你的改动。包括但不限于二级冒烟、算子泛化等。--> [2026-04-15 13:48:06] Run ops opkernel_aicpu utest [2026-04-15 13:48:06] [==========] Running 1 test from 1 test suite. [2026-04-15 13:48:06] [----------] Global test environment set-up. [2026-04-15 13:48:06] [----------] 1 test from TEST_AddExample_UT [2026-04-15 13:48:06] [ RUN ] TEST_AddExample_UT.INT32_VECTOR_ADD_SUCC [2026-04-15 13:48:06] [ OK ] TEST_AddExample_UT.INT32_VECTOR_ADD_SUCC (0 ms) [2026-04-15 13:48:06] [----------] 1 test from TEST_AddExample_UT (0 ms total) [2026-04-15 13:48:06] [2026-04-15 13:48:06] [----------] Global test environment tear-down [2026-04-15 13:48:06] [==========] 1 test from 1 test suite ran. (0 ms total) [2026-04-15 13:48:06] [ PASSED ] 1 test. [2026-04-15 13:48:06] [100%] Built target cv_aicpu_op_kernel_ut ## 文档更新 <!--如果这个PR包含文档的更新,请在这里指出。例如:更新了README.md文件。--> 更新了docs/zh/install/compile.md ## 类型标签 <!-- [x] 表示选中 --> - [x] 🐛 Bug 修复 - [ ] ✨ 新特性 - [ ] ⚡ 性能优化 - [ ] ♻️ 重构 - [ ] 🧪 测试 - [ ] 📦 构建/CI - [ ] 🔧 配置变更 - [ ] 📝 文档更新 - [ ] ⬆️ 依赖升级 - [ ] 🔒 安全修复 - [ ] 🧹 代码清理 - [ ] ❓ 其他,请描述: See merge request: cann/ops-cv!727 | 4 个月前 | |
add_example_aicpu修改 Co-authored-by: Ding_Jing<dingjing19@huawei.com> # message auto-generated for no-merge-commit merge: !727 merge bubgix0415 into master add_example_aicpu修改 Created-by: Ding_Jing Commit-by: Ding_Jing Merged-by: cann-robot Description: ## 描述 <!--在这里详细描述你的改动,包括改动的原因和所采取的方法。--> 本PR的具体修改内容如下: 1、修复add_example_aicpu的ut 2、ut说明中添加aicpu的kernel执行 ## 关联的Issue <!-- 如果这个PR是为了解决特定的Issue,请在这里提供Issue链接。例如:关联Issue #000--> <!-- 如果这个PR是为了解决特定的问题单,请在这里描述问题单单号。--> issue [#321](https://gitcode.com/cann/ops-cv/issues/321) ## 测试 <!--描述进行了哪些测试来验证你的改动。包括但不限于二级冒烟、算子泛化等。--> [2026-04-15 13:48:06] Run ops opkernel_aicpu utest [2026-04-15 13:48:06] [==========] Running 1 test from 1 test suite. [2026-04-15 13:48:06] [----------] Global test environment set-up. [2026-04-15 13:48:06] [----------] 1 test from TEST_AddExample_UT [2026-04-15 13:48:06] [ RUN ] TEST_AddExample_UT.INT32_VECTOR_ADD_SUCC [2026-04-15 13:48:06] [ OK ] TEST_AddExample_UT.INT32_VECTOR_ADD_SUCC (0 ms) [2026-04-15 13:48:06] [----------] 1 test from TEST_AddExample_UT (0 ms total) [2026-04-15 13:48:06] [2026-04-15 13:48:06] [----------] Global test environment tear-down [2026-04-15 13:48:06] [==========] 1 test from 1 test suite ran. (0 ms total) [2026-04-15 13:48:06] [ PASSED ] 1 test. [2026-04-15 13:48:06] [100%] Built target cv_aicpu_op_kernel_ut ## 文档更新 <!--如果这个PR包含文档的更新,请在这里指出。例如:更新了README.md文件。--> 更新了docs/zh/install/compile.md ## 类型标签 <!-- [x] 表示选中 --> - [x] 🐛 Bug 修复 - [ ] ✨ 新特性 - [ ] ⚡ 性能优化 - [ ] ♻️ 重构 - [ ] 🧪 测试 - [ ] 📦 构建/CI - [ ] 🔧 配置变更 - [ ] 📝 文档更新 - [ ] ⬆️ 依赖升级 - [ ] 🔒 安全修复 - [ ] 🧹 代码清理 - [ ] ❓ 其他,请描述: See merge request: cann/ops-cv!727 | 4 个月前 | |
add some fetures to ops-cv Co-authored-by: liukejin<liukejin@huawei.com> # message auto-generated for no-merge-commit merge: !80 merge merge_to_cv into master add some fetures to ops-cv Created-by: liukejin Commit-by: liukejin Merged-by: cann-robot Description: ## 描述 add some fetures(from ops-cv-dev) to ops-cv: 1. add omm、mssanitizer compile options 2. support aicpu ut test 3. add ascend630 support 4. adapt ccache 5. add asan compile options 6. adapt child package switch and child package path change 7. adapt static library function 8. add build-type comile option 9. add total aclnn header file 10. update install scripts ## 关联的Issue <!-- 如果这个PR是为了解决特定的Issue,请在这里提供Issue链接。例如:关联Issue #123--> <!-- 如果这个PR是为了解决特定的问题单,请在这里描述问题单单号。--> ## 测试   ## 文档更新 <!--如果这个PR包含文档的更新,请在这里指出。例如:更新了README.md文件。--> 1. update README.md 2. update SECURITY.md ## 类型标签 <!-- [x] 表示选中 --> - [ ] Bug修复 - [x] 新特性 - [ ] 性能优化 - [ ] 文档更新 - [ ] 其他,请描述: See merge request: cann/ops-cv!80 | 7 个月前 | |
【描 述】 Optimizer Markdown Information Co-authored-by: j00427146<jialimin1@huawei.com> # message auto-generated for no-merge-commit merge: !681 merge master into master 【描 述】 Optimizer Markdown Information Created-by: jialimin1 Commit-by: j00427146 Merged-by: cann-robot Description: ## 描述 按照issue提到的问题逐一修改资料描述。 ## 关联的Issue 关联Issue #299 关联Issue #300 <!-- 如果这个PR是为了解决特定的Issue,请在这里提供Issue链接。例如:关联Issue #000--> <!-- 如果这个PR是为了解决特定的问题单,请在这里描述问题单单号。--> ## 测试 <!--描述进行了哪些测试来验证你的改动。包括但不限于二级冒烟、算子泛化等。--> ## 文档更新 <!--如果这个PR包含文档的更新,请在这里指出。例如:更新了README.md文件。--> ## 类型标签 <!-- [x] 表示选中 --> - [ ] 🐛 Bug 修复 - [ ] ✨ 新特性 - [ ] ⚡ 性能优化 - [ ] ♻️ 重构 - [ ] 🧪 测试 - [ ] 📦 构建/CI - [ ] 🔧 配置变更 - [x] 📝 文档更新 - [ ] ⬆️ 依赖升级 - [ ] 🔒 安全修复 - [ ] 🧹 代码清理 - [ ] ❓ 其他,请描述: See merge request: cann/ops-cv!681 | 4 个月前 |
AddExampleAicpu
产品支持情况
| 产品 | 是否支持 |
|---|---|
| Atlas A3 训练系列产品/Atlas A3 推理系列产品 | √ |
| Atlas A2 训练系列产品/Atlas A2 推理系列产品 | √ |
功能说明
-
算子功能:完成加法计算。
-
计算公式:
y=x1+x2y = x1 + x2 y=x1+x2
参数说明
| 参数名 | 输入/输出/属性 | 描述 | 数据类型 | 数据格式 |
|---|---|---|---|---|
| x1 | 输入 | 待进行AddExample计算的入参,公式中的x1。 | FLOAT、INT32 | ND |
| x2 | 输入 | 待进行AddExample计算的入参,公式中的x2。 | FLOAT、INT32 | ND |
| y | 输出 | 待进行AddExample计算的出参,公式中的y。 | FLOAT、INT32 | ND |
约束说明
无
调用说明
| 调用方式 | 调用样例 | 说明 |
|---|---|---|
| aclnn调用 | test_aclnn_add_example | 参见算子调用完成算子编译和验证。 |
| 图模式调用 | test_geir_add_example |