| Files | Last commit | Last update |
|---|---|---|
docs: add English translations for operator READMEs and repo docs Co-authored-by: jenny_xiang<jenny.xiang@huawei.com> # message auto-generated for no-merge-commit merge: !13351 merge docs/add-english-docs into master docs: add English translations for operator READMEs and repo docs Created-by: jenny_xiang Commit-by: jenny_xiang Merged-by: cann-robot Description: ## Description Add English translations for 652 markdown documents: - Repo-level guides: README_en.md, CONTRIBUTING_en.md, SECURITY_en.md, CHANGELOG_en.md, codearts_check_rule_config_en.md - Operator READMEs under activation/, conv/, control/, foreach/, hash/, index/, loss/, matmul/, norm/, optim/, pooling/, quant/, rnn/, vfusion/, etc. - API and design docs under docs/ (aclnn_*, ascendir_*, fusion pass docs) - examples/ and torch_extension/ guides Note: a few cross-reference links whose English targets are not published yet temporarily point to their Chinese counterparts to keep links valid; they will be switched back to the English docs in a follow-up PR after this one is merged. ## Related Issue N/A ## Test - Verified all 1,344 intra-repo markdown links in the added files resolve against master: 0 broken links, 0 missing targets. ## Documentation Update - This PR only adds English documentation files (*_en.md); no existing Chinese documents are modified. ## Type Labels - [ ] Bug fix - [ ] New feature - [ ] Performance optimization - [x] Documentation update - [ ] Other, please describe: ## AI/Agent-Generated Declaration - [x] AI-assisted authoring See merge request: cann/ops-nn!13351 | 18 days ago | |
feat(assert_async): 适配 Ascend350 与 Ascend960 平台 Co-authored-by: ASCEND222<dongfei16@h-partners.com> # message auto-generated for no-merge-commit merge: !14724 merge master into master feat(assert_async): 适配 Ascend350 与 Ascend960 平台 Created-by: ASCEND222 Commit-by: ASCEND222 Merged-by: cann-robot Description: ## 描述 <!--在这里详细描述你的改动,包括改动的原因和所采取的方法。--> feat(assert_async): 适配 Ascend350 与 Ascend960 平台 修改文件清单 | 文件 | 修改内容 | 目的 | | --- | --- | --- | | control/assert_async/op_host/assert_async_def.cpp | 新增 AddConfig("ascend350" / "ascend960dt" / "ascend960pr") | 算子注册支持新平台 | | control/assert_async/CMakeLists.txt | COMPUTE_UNIT 增加 3 个 SoC,TILING_DIR 按位置配对 4 个 arch35 | host 侧 tiling 按平台编译 | | control/assert_async/op_kernel/CMakeLists.txt | COMPUTE_UNITS 增加 3 个 SoC | kernel 按平台生成二进制 | | control/assert_async/op_host/arch35/assert_async_tiling_arch35.cpp | 删除 950 专属 SoC 校验,更新文件注释与步骤编号 | 允许 350/960 走通 tiling | | control/assert_async/op_kernel/arch35/assert_async_kernel.h | DataCopyPad 的 PaddingMode 条件扩展到 9201/9202,更新注释 | 保证 960 编译期选中正确 API 重载 | | control/assert_async/op_kernel/assert_async.cpp | 更新文件头注释 | 注释与支持范围一致 | | control/assert_async/tests/ut/op_host/arch35/test_assert_async_whitebox_tiling.cpp | 删除 AA_WB_18 SoC 负向用例及 socVersion 参数 | 与删除 SoC 校验保持一致 | ## 关联的Issue <!-- 如果这个PR是为了解决特定的Issue,请在这里提供Issue链接。例如:关联Issue #000--> https://gitcode.com/cann/ops-nn/issues/9060 ## 测试 <!--描述进行了哪些测试来验证你的改动。--> ## 文档更新 <!--如果这个PR包含文档的更新,请在这里指出。例如:更新了README.md文件。--> ## 类型标签 <!-- [x] 表示选中 --> - [ ] Bug修复 - [x] 新特性 - [ ] 性能优化 - [ ] 文档更新 - [ ] 其他,请描述: ## AI/Agent生成声明 <!-- [x] 表示选中 --> - [ ] AI辅助编写 See merge request: cann/ops-nn!14724 | 3 days ago | |
fix(npu_alloc_float_status): 算子质量加固——kernel块写改造/tiling负向UT补齐/文档约束修正 Co-authored-by: dengguojie<dengguojie@huawei.com> # message auto-generated for no-merge-commit merge: !13891 merge hardening/NPUAllocFloatStatus into master fix(npu_alloc_float_status): 算子质量加固——kernel块写改造/tiling负向UT补齐/文档约束修正 Created-by: dengguojie Commit-by: dengguojie Merged-by: cann-robot Description: ## 描述 NPUAllocFloatStatus(control/npu_alloc_float_status,Ascend 950/Arch35)质量加固修复,共 21 项修复明细见汇总 issue。 **修复要点**: - **Kernel 输出路径块写改造(核心)**: 循环 SetValue 逐元素写 GM 改为 TPipe+Duplicate+DataCopy 32B 块写,补 V→MTE3 事件屏障(修复 MTE3 先于向量单元读 UB 的搬出残留)。 - **Tiling UT 修复与负向补齐**: UT 文件名对齐收集规则;哑输入声明适配 CANN 9.3.0(拒绝 input_num=0);新增 5 个 tiling 校验负向用例。 - **文档**: README 中英补域外输入拒绝条件与算子 IR 链接,删零信息量伪约束;op_list.md aclnn 列 ✓→✗(无 aclnn 交付)。 - **样例**: 宿主缓冲泄漏补 delete[];废弃头迁移(array_ops.h/tensor.h→ops_proto_math.h,ge_error_codes.h→error_codes.h)。 - **规范化**: kernel 入口去 _apt 后缀,def.cpp opFile 配置行删除(对齐 kernel 配置项指南);CMakeLists 许可头对齐;proto.h 注释对齐。 - **测试资产**: golden __spec__ 补 GE/TF 键并 lazy import;新增 kernel/geir/tf 三通路看护集 CSV。 ## 关联的Issue Closes #8377 ## 测试 - kernel 通路 binary_equal 全绿(块写改造后逐位一致);UT 7/7 PASS(含 5 负向),tiling 覆盖率 94.2%→96.2%。 - 看护集 CSV 经 TTK validate 与 header 校验全绿;pre-commit(含 OAT)对变更文件定向全绿。 ## 文档更新 - README.md / README_en.md(中英同步)与 docs/zh/op_list.md,详见修复要点。 ## 类型标签 <!-- [x] 表示选中 --> - [x] Bug修复 - [ ] 新特性 - [ ] 性能优化 - [x] 文档更新 - [ ] 其他,请描述: ## AI/Agent生成声明 <!-- [x] 表示选中 --> - [x] AI辅助编写 See merge request: cann/ops-nn!13891 | 12 days ago | |
fix: 加固npu_clear_float_status与sigmoid_cross_entropy_with_logits_grad两个长尾算子 Co-authored-by: klein8793<zhangli24@huawei.com> # message auto-generated for no-merge-commit merge: !14069 merge dev_zl_2026_1106 into master fix: 加固npu_clear_float_status与sigmoid_cross_entropy_with_logits_grad两个长尾算子 Created-by: klein8793 Commit-by: klein8793 Merged-by: cann-robot Description: ## 描述 对两个长尾算子进行加固,修复潜在缺陷并提升健壮性: **npu_clear_float_status** - 将 VEC_DUP_SIZE/VEC_DUP_SIZE_BYTES 常量从 op_kernel/arch35/npu_clear_float_status_simt.h 迁移到 op_kernel/arch35/npu_clear_float_status_tiling_data.h,Host Tiling 与 Kernel 引用同一常量(单一来源),避免两侧各自维护独立常量导致不一致;tiling_arch35.cpp 中的 TBUF_REQUIRED_SIZE 改为引用 VEC_DUP_SIZE_BYTES,并同步更新 static_assert。 - 测试 golden.py 由 TensorFlow 实现切换为 Torch 实现。 **sigmoid_cross_entropy_with_logits_grad** - 样例 test_geir_sigmoid_cross_entropy_with_logits_grad.cpp:GenData 改用 std::vector<std::vector<float>> 管理输入缓冲,消除 new[] 未释放的内存泄漏;AddGraph 增加失败检查;补齐 GEFinalize 成功路径与失败路径的 delete session。 - sigmoid_cross_entropy_with_logits_grad_arch35_tiling.cpp:totalElements 累乘增加负维度检查与 int64 溢出检查。 - sigmoid_cross_entropy_with_logits_grad_proto.h:dout 的 shape 约束由"满足广播关系"修正为"元素总数与 predict 相同,不支持广播"。 - README:参数名 d_out 统一为 dout,与 proto 及代码保持一致。 - 新增 tests/assets/golden.py 精度标杆。 ## 关联的Issue - #8855 ## 测试 冒烟测试已通过,算子L0级测试已通过 ## 文档更新 - 更新 loss/sigmoid_cross_entropy_with_logits_grad/README.md(参数名与 shape 约束说明)。 ## 类型标签 - [x] Bug修复 - [ ] 新特性 - [ ] 性能优化 - [ ] 文档更新 - [ ] 其他,请描述: ## AI/Agent生成声明 - [ ] AI辅助编写 See merge request: cann/ops-nn!14069 | 6 days ago | |
docs: add English translations for operator READMEs and repo docs Co-authored-by: jenny_xiang<jenny.xiang@huawei.com> # message auto-generated for no-merge-commit merge: !13351 merge docs/add-english-docs into master docs: add English translations for operator READMEs and repo docs Created-by: jenny_xiang Commit-by: jenny_xiang Merged-by: cann-robot Description: ## Description Add English translations for 652 markdown documents: - Repo-level guides: README_en.md, CONTRIBUTING_en.md, SECURITY_en.md, CHANGELOG_en.md, codearts_check_rule_config_en.md - Operator READMEs under activation/, conv/, control/, foreach/, hash/, index/, loss/, matmul/, norm/, optim/, pooling/, quant/, rnn/, vfusion/, etc. - API and design docs under docs/ (aclnn_*, ascendir_*, fusion pass docs) - examples/ and torch_extension/ guides Note: a few cross-reference links whose English targets are not published yet temporarily point to their Chinese counterparts to keep links valid; they will be switched back to the English docs in a follow-up PR after this one is merged. ## Related Issue N/A ## Test - Verified all 1,344 intra-repo markdown links in the added files resolve against master: 0 broken links, 0 missing targets. ## Documentation Update - This PR only adds English documentation files (*_en.md); no existing Chinese documents are modified. ## Type Labels - [ ] Bug fix - [ ] New feature - [ ] Performance optimization - [x] Documentation update - [ ] Other, please describe: ## AI/Agent-Generated Declaration - [x] AI-assisted authoring See merge request: cann/ops-nn!13351 | 18 days ago | |
refactor(npuarch): glu/sleep/concat_offset/reverse_sequence 算子注册与构建配置按 NpuArch 整改 Co-authored-by: esok11<yangsifa@huawei.com> # message auto-generated for no-merge-commit merge: !14631 merge f1117-1114 into master refactor(npuarch): glu/sleep/concat_offset/reverse_sequence 算子注册与构建配置按 NpuArch 整改 Created-by: esok11 Commit-by: esok11 Merged-by: cann-robot Description: ## 描述 CANN 算子注册与构建链路正在从"SoC 型号"维度迁移到"NpuArch"维度:cmake 侧 cmake/soc_arch_variables.cmake 维护 socVersion → npuArch 映射(ascend950/ascend350 → dav_3510,ascend960dt → dav_9201,ascend960pr → dav_9202),opbase 侧提供 op_common/op_host/util/op_arch_helper.h(opbase::ArchConfigHelper::AddConfigByArch)与 op_common/op_host/util/op_const_def.h(Ops::Base::DAV_*)作为统一入口。 本 PR 对 glu、sleep、concat_offset、reverse_sequence 四个算子完成按 NpuArch 的注册与构建配置整改,注册/编译结果与整改前等价,无功能与接口变化。 ### 改动方法 1. 算子注册按 NpuArch 注册(op_host/*_def.cpp,新增 include op_common/op_host/util/op_arch_helper.h) - activation/glu/op_host/glu_def.cpp、control/sleep/op_host/sleep_def.cpp、index/concat_offset/op_host/concat_offset_def.cpp、index/reverse_sequence/op_host/reverse_sequence_def.cpp - 原先 AICore().AddConfig("ascend950"/"ascend350"/"ascend960dt"/"ascend960pr", cfg) 逐 SoC 注册,改为 opbase::ArchConfigHelper::AddConfigByArch(AICore(), Ops::Base::DAV_3510 / Ops::Base::DAV_9201 / Ops::Base::DAV_9202, cfg) - AddConfigByArch 内部按 arch→soc 映射展开(DAV_3510 → ascend950 + ascend350,DAV_9201 → ascend960dt,DAV_9202 → ascend960pr),因此注册结果与原逐 SoC 写法一致;同 arch 的新增芯片无需再改算子代码 2. 运行时 arch 判断改用 Ops::Base 常量(新增 include op_common/op_host/util/op_const_def.h) - activation/glu/op_host/op_api/aclnn_glu.cpp:NpuArch::DAV_2201 → Ops::Base::DAV_2201 - index/reverse_sequence/op_host/arch35/reverse_sequence_simt_tiling.cpp:NpuArch::DAV_9201/NpuArch::DAV_9202 → Ops::Base::DAV_9201/Ops::Base::DAV_9202 3. CMake 芯片配置统一为 npuArch 串 - control/sleep/op_kernel/CMakeLists.txt、index/concat_offset/op_kernel/CMakeLists.txt、index/concat_offset/CMakeLists.txt、index/reverse_sequence/CMakeLists.txt:COMPUTE_UNITS / SUPPORT_COMPUTE_UNIT 由 ascend950 ascend350 ascend960dt ascend960pr 改为 dav_3510 dav_9201 dav_9202(按 soc→arch 映射合并,tiling 目录仍为 arch35) - 新增 activation/glu/op_kernel/CMakeLists.txt、index/reverse_sequence/op_kernel/CMakeLists.txt,补全 add_kernel_sources 声明(COMPUTE_UNITS dav_3510 dav_9201 dav_9202、AUTO_SYNC false;GLU 保留 -mllvm -cce-aicore-dcci-before-kernel-end=false) 4. UT 适配 - index/concat_offset/tests/ut/op_host/arch35/test_concat_offset_tilling.cpp 更正为 test_concat_offset_tiling.cpp - 用例改用 TilingContextFaker::IrInstanceNum(输入实例数, 输出实例数) 双参数形式(动态输入 {1, 3}、输出 {1, 1, 1}),移除动态输入展开后冗余的 NodeInputTd(2) / NodeInputTd(3),Attr 改用 Ops::NN::AnyValue ## 关联的Issue - #9022 ## 测试 - 按提交记录:ascend950 UT op_host 19/19、op_api 31/31、op_kernel 7/7 通过(配合 COMPUTE_UNIT soc/npuArch 混配框架验证) - concat_offset tiling UT 已随 TilingContextFaker 实例数用法调整同步更新 - CI 编译流水线通过 ## 文档更新 不涉及,本 PR 仅调整算子注册与构建配置,未改动 docs。 ## 类型标签 - [ ] Bug修复 - [ ] 新特性 - [ ] 性能优化 - [ ] 文档更新 - [x] 其他,请描述:NpuArch 整改(算子注册与构建配置按 NpuArch 统一),无功能与接口变化 ## AI/Agent生成声明 - [ ] AI辅助编写 See merge request: cann/ops-nn!14631 | 3 days ago | |
docs: add English translations for operator READMEs and repo docs Co-authored-by: jenny_xiang<jenny.xiang@huawei.com> # message auto-generated for no-merge-commit merge: !13351 merge docs/add-english-docs into master docs: add English translations for operator READMEs and repo docs Created-by: jenny_xiang Commit-by: jenny_xiang Merged-by: cann-robot Description: ## Description Add English translations for 652 markdown documents: - Repo-level guides: README_en.md, CONTRIBUTING_en.md, SECURITY_en.md, CHANGELOG_en.md, codearts_check_rule_config_en.md - Operator READMEs under activation/, conv/, control/, foreach/, hash/, index/, loss/, matmul/, norm/, optim/, pooling/, quant/, rnn/, vfusion/, etc. - API and design docs under docs/ (aclnn_*, ascendir_*, fusion pass docs) - examples/ and torch_extension/ guides Note: a few cross-reference links whose English targets are not published yet temporarily point to their Chinese counterparts to keep links valid; they will be switched back to the English docs in a follow-up PR after this one is merged. ## Related Issue N/A ## Test - Verified all 1,344 intra-repo markdown links in the added files resolve against master: 0 broken links, 0 missing targets. ## Documentation Update - This PR only adds English documentation files (*_en.md); no existing Chinese documents are modified. ## Type Labels - [ ] Bug fix - [ ] New feature - [ ] Performance optimization - [x] Documentation update - [ ] Other, please describe: ## AI/Agent-Generated Declaration - [x] AI-assisted authoring See merge request: cann/ops-nn!13351 | 18 days ago | |
init | 1 year ago |
| Files | Last commit | Last update |
|---|---|---|
| 18 days ago | ||
| 3 days ago | ||
| 12 days ago | ||
| 6 days ago | ||
| 18 days ago | ||
| 3 days ago | ||
| 18 days ago | ||
| 1 year ago |