| 文件 | 最后提交记录 | 最后更新时间 |
|---|---|---|
chore: normalize copyright year to 2026 Co-authored-by: LiuZonggu<liuzonggu1@huawei.com> # message auto-generated for no-merge-commit merge: !66 merge split/pr10-copyright-2026 into master chore: normalize copyright year to 2026 Created-by: LiuZonggu Commit-by: LiuZonggu Merged-by: cann-robot Description: ## 描述 Normalize Huawei-owned copyright and license header year expressions across the repository: - Replaced legacy years, year ranges, and dynamic year placeholders with the single year 2026. - Standardized 460 copyright licenses across 455 tracked files. - Updated the copyright header generation logic in scripts/package/package.py and scripts/util/ascendc_impl_build.py so newly generated files consistently use the single year 2026. - Preserved third-party copyright years, license text, documentation content, and unrelated code behavior. ## 关联的Issue Related to issue [#4](https://gitcode.com/cann/ops-ras/issues/4) ## 测试 ## 文档更新 No documentation content or structure was changed. Only Huawei copyright year expressions in tracked Markdown files were normalized. ## 类型标签 - [ ] Bug修复 - [ ] 新特性 - [ ] 性能优化 - [ ] 文档更新 - [x] 其他,请描述:Copyright/license year normalization See merge request: cann/ops-ras!66 | 2 个月前 | |
chore: normalize copyright year to 2026 Co-authored-by: LiuZonggu<liuzonggu1@huawei.com> # message auto-generated for no-merge-commit merge: !66 merge split/pr10-copyright-2026 into master chore: normalize copyright year to 2026 Created-by: LiuZonggu Commit-by: LiuZonggu Merged-by: cann-robot Description: ## 描述 Normalize Huawei-owned copyright and license header year expressions across the repository: - Replaced legacy years, year ranges, and dynamic year placeholders with the single year 2026. - Standardized 460 copyright licenses across 455 tracked files. - Updated the copyright header generation logic in scripts/package/package.py and scripts/util/ascendc_impl_build.py so newly generated files consistently use the single year 2026. - Preserved third-party copyright years, license text, documentation content, and unrelated code behavior. ## 关联的Issue Related to issue [#4](https://gitcode.com/cann/ops-ras/issues/4) ## 测试 ## 文档更新 No documentation content or structure was changed. Only Huawei copyright year expressions in tracked Markdown files were normalized. ## 类型标签 - [ ] Bug修复 - [ ] 新特性 - [ ] 性能优化 - [ ] 文档更新 - [x] 其他,请描述:Copyright/license year normalization See merge request: cann/ops-ras!66 | 2 个月前 | |
refactor: 精简非公共工程并保留公共能力 Co-authored-by: LiuZonggu<liuzonggu1@huawei.com> # message auto-generated for no-merge-commit merge: !45 merge update-repo into master refactor: 精简非公共工程并保留公共能力 Created-by: LiuZonggu Commit-by: LiuZonggu Merged-by: cann-robot Description: ## 描述 本 PR 基于公共工程能力,对最初从的非公共实现、测试和工程进行精简。 - 删除没有 RAS 实际使用,构建目标、安装或公共使用的 common/act、旧 kernel/fallback/tiling 实现和无消费者头文件。 - 保留并整理 AddExample、opgen 实际使用的公共 OpHost tiling 能力;存在真实 kernel consumer 时仍按需交付 OPBASE atvoss/op_kernel payload。 - 删除仓内冗余的 level0/aclnn_kernels 实现。 - 清理 build/CMake/UT/CI/英文文档中的 ops-nn、ops-math 和 MatMul 遗留命名、无效路径及硬编码算子分组;保留固定 CI 入口。 ## 关联的Issue [#10](https://gitcode.com/cann/ops-ras/issues/10) ## 测试 全量默认 UT:bash build.sh -u 后 CTest 2/2 通过;OpAPI 29 个用例、公共 Host 3 个用例通过。 安装卸载没有残留文件和权限问题 ## 文档更新 更新英文编译、安装、AI Core/AI CPU 开发、算子调用和仿真文档:统一为 ops-ras/AddExample 的真实包名、库名、命令和路径,修复错误相对链接,并删除本仓不存在的离线下载工具描述。 ## 类型标签 - [ ] Bug修复 - [ ] 新特性 - [ ] 性能优化 - [ ] 文档更新 - [x] 其他,请描述:仓库工程精简与公共能力整理 See merge request: cann/ops-ras!45 | 1 个月前 | |
chore: normalize copyright year to 2026 Co-authored-by: LiuZonggu<liuzonggu1@huawei.com> # message auto-generated for no-merge-commit merge: !66 merge split/pr10-copyright-2026 into master chore: normalize copyright year to 2026 Created-by: LiuZonggu Commit-by: LiuZonggu Merged-by: cann-robot Description: ## 描述 Normalize Huawei-owned copyright and license header year expressions across the repository: - Replaced legacy years, year ranges, and dynamic year placeholders with the single year 2026. - Standardized 460 copyright licenses across 455 tracked files. - Updated the copyright header generation logic in scripts/package/package.py and scripts/util/ascendc_impl_build.py so newly generated files consistently use the single year 2026. - Preserved third-party copyright years, license text, documentation content, and unrelated code behavior. ## 关联的Issue Related to issue [#4](https://gitcode.com/cann/ops-ras/issues/4) ## 测试 ## 文档更新 No documentation content or structure was changed. Only Huawei copyright year expressions in tracked Markdown files were normalized. ## 类型标签 - [ ] Bug修复 - [ ] 新特性 - [ ] 性能优化 - [ ] 文档更新 - [x] 其他,请描述:Copyright/license year normalization See merge request: cann/ops-ras!66 | 2 个月前 | |
refactor: 精简非公共工程并保留公共能力 Co-authored-by: LiuZonggu<liuzonggu1@huawei.com> # message auto-generated for no-merge-commit merge: !45 merge update-repo into master refactor: 精简非公共工程并保留公共能力 Created-by: LiuZonggu Commit-by: LiuZonggu Merged-by: cann-robot Description: ## 描述 本 PR 基于公共工程能力,对最初从的非公共实现、测试和工程进行精简。 - 删除没有 RAS 实际使用,构建目标、安装或公共使用的 common/act、旧 kernel/fallback/tiling 实现和无消费者头文件。 - 保留并整理 AddExample、opgen 实际使用的公共 OpHost tiling 能力;存在真实 kernel consumer 时仍按需交付 OPBASE atvoss/op_kernel payload。 - 删除仓内冗余的 level0/aclnn_kernels 实现。 - 清理 build/CMake/UT/CI/英文文档中的 ops-nn、ops-math 和 MatMul 遗留命名、无效路径及硬编码算子分组;保留固定 CI 入口。 ## 关联的Issue [#10](https://gitcode.com/cann/ops-ras/issues/10) ## 测试 全量默认 UT:bash build.sh -u 后 CTest 2/2 通过;OpAPI 29 个用例、公共 Host 3 个用例通过。 安装卸载没有残留文件和权限问题 ## 文档更新 更新英文编译、安装、AI Core/AI CPU 开发、算子调用和仿真文档:统一为 ops-ras/AddExample 的真实包名、库名、命令和路径,修复错误相对链接,并删除本仓不存在的离线下载工具描述。 ## 类型标签 - [ ] Bug修复 - [ ] 新特性 - [ ] 性能优化 - [ ] 文档更新 - [x] 其他,请描述:仓库工程精简与公共能力整理 See merge request: cann/ops-ras!45 | 1 个月前 | |
chore: normalize copyright year to 2026 Co-authored-by: LiuZonggu<liuzonggu1@huawei.com> # message auto-generated for no-merge-commit merge: !66 merge split/pr10-copyright-2026 into master chore: normalize copyright year to 2026 Created-by: LiuZonggu Commit-by: LiuZonggu Merged-by: cann-robot Description: ## 描述 Normalize Huawei-owned copyright and license header year expressions across the repository: - Replaced legacy years, year ranges, and dynamic year placeholders with the single year 2026. - Standardized 460 copyright licenses across 455 tracked files. - Updated the copyright header generation logic in scripts/package/package.py and scripts/util/ascendc_impl_build.py so newly generated files consistently use the single year 2026. - Preserved third-party copyright years, license text, documentation content, and unrelated code behavior. ## 关联的Issue Related to issue [#4](https://gitcode.com/cann/ops-ras/issues/4) ## 测试 ## 文档更新 No documentation content or structure was changed. Only Huawei copyright year expressions in tracked Markdown files were normalized. ## 类型标签 - [ ] Bug修复 - [ ] 新特性 - [ ] 性能优化 - [ ] 文档更新 - [x] 其他,请描述:Copyright/license year normalization See merge request: cann/ops-ras!66 | 2 个月前 | |
initial OPS-RAS | 7 个月前 |
AddExample
产品支持情况
| 产品 | 是否支持 |
|---|---|
| Atlas A3 训练系列产品/Atlas A3 推理系列产品 | √ |
| Atlas A2 训练系列产品/Atlas 800I A2 推理产品/A200I A2 Box 异构组件 | √ |
功能说明
-
算子功能:完成加法计算。
-
计算公式:
y=x1+x2y = x1 + x2 y=x1+x2
参数说明
| 参数名 | 输入/输出/属性 | 描述 | 数据类型 | 数据格式 |
|---|---|---|---|---|
| x1 | 输入 | 待进行add_example计算的入参,公式中的x1。 | FLOAT、INT32 | ND |
| x2 | 输入 | 待进行add_example计算的入参,公式中的x2。 | FLOAT、INT32 | ND |
| y | 输出 | 待进行add_example计算的出参,公式中的y。 | FLOAT、INT32 | ND |
约束说明
无
调用说明
| 调用方式 | 调用样例 | 说明 |
|---|---|---|
| aclnn调用 | test_aclnn_add_example | 参见算子调用完成算子编译和验证。 |
| 图模式调用 | test_geir_add_example |