| 文件 | 最后提交记录 | 最后更新时间 |
|---|---|---|
test(add_row_ranges): GEIR 示例默认 device 改为 0 Co-authored-by: zhou-liang1027<zhouliang88@huawei.com> # message auto-generated for no-merge-commit merge: !13625 merge fix/add_row_ranges-example-device0 into master test(add_row_ranges): GEIR 示例默认 device 改为 0 Created-by: zhou-liang1027 Commit-by: zhou-liang1027 Merged-by: cann-robot Description: ## 描述 test(add_row_ranges): GEIR 示例默认 device 改为 0 ## 关联的Issue https://gitcode.com/cann/ops-nn/issues/8113 ## 测试 <!--描述进行了哪些测试来验证你的改动。--> ## 文档更新 <!--如果这个PR包含文档的更新,请在这里指出。例如:更新了README.md文件。--> ## 类型标签 <!-- [x] 表示选中 --> - [ ] Bug修复 - [ ] 新特性 - [ ] 性能优化 - [ ] 文档更新 - [ ] 其他,请描述: ## AI/Agent生成声明 <!-- [x] 表示选中 --> - [ ] AI辅助编写 See merge request: cann/ops-nn!13625 | 17 天前 | |
修复 ops-nn 接口文档扫描问题(错别字/标点/多字,117处) Co-authored-by: liujing987913<liujing407@h-partners.com> # message auto-generated for no-merge-commit merge: !13766 merge master into master 修复 ops-nn 接口文档扫描问题(错别字/标点/多字,117处) Created-by: liujing987913 Commit-by: liujing987913 Merged-by: cann-robot Description: ## 描述 <!--在这里详细描述你的改动,包括改动的原因和所采取的方法。--> - 背景:大模型扫描发现 ops-nn 接口文档问题 117 处 - 修改分类:多字/中文多字 70、同音字 17、形近字 3、引号未成对 4、代码括号 2、术语拼写 2、字母顺序 2(文本替换 100 处);MD 结构 17 处(tab→空格 6、列表空行 9、连续空行 2) - 涉及文件:docs 目录下 85 个接口文档 md - 验证:git diff 确认为纯文本替换(100 处)+ 纯结构操作(17 处),无代码内容误改;已人工复核 ## 关联的Issue <!-- 如果这个PR是为了解决特定的Issue,请在这里提供Issue链接。例如:关联Issue [#8245](https://gitcode.com/cann/ops-nn/issues/8245) ## 测试 <!--描述进行了哪些测试来验证你的改动。--> ## 文档更新 <!--如果这个PR包含文档的更新,请在这里指出。例如:更新了README.md文件。--> 本次 PR 更新了 ops-nn 接口文档 85 个 md 文件,修正错别字/标点/多字 100 处、MD 结构 17 处,详见 diff。 ## 类型标签 <!-- [x] 表示选中 --> - [ ] Bug修复 - [ ] 新特性 - [ ] 性能优化 - [x] 文档更新 - [ ] 其他,请描述: ## AI/Agent生成声明 <!-- [x] 表示选中 --> - [ ] AI辅助编写 See merge request: cann/ops-nn!13766 | 15 天前 | |
fix(arg_max_grad): 修正样例悬垂指针与 dimension 注释,加固 tiling 边界判定 Co-authored-by: rrely11<wuyan23@huawei.com> # message auto-generated for no-merge-commit merge: !13643 merge master into master fix(arg_max_grad): 修正样例悬垂指针与 dimension 注释,加固 tiling 边界判定 Created-by: rrely11 Commit-by: rrely11 Merged-by: cann-robot Description: ## 描述 修复 ArgMaxGrad 算子样例与 tiling 逻辑中的若干问题: - 样例悬垂指针: test_geir_arg_max_grad.cpp 的 GenData 原用局部 std::vector 的 data() 直接 SetData,vector 随函数返回析构后指针悬垂。改为用 std::unique_ptr 配合带 DeleteFunc 的 SetData 重载,将 buffer 所有权移交 Tensor 由析构时自动释放,并补充内存分配失败与 SetData 返回值的错误检查。 - dimension 注释:arg_max_grad_proto.h 中约束注释的 dims 从「x 的维度长度」更正为「var 的维度数(rank)」。 - tiling 边界:arg_max_grad_tiling_arch35.cpp 中逐行直算/铺 tile 档位判定由 inner * FILL_PASSES > vlInt32_ 启发式改为 inner % vlInt32_ == 0,确保无掩码 LoadAlign 恒按整寄存器读取时末行不会越界读到相邻缓冲;inner == 1 的多 outer 合并档同样改为 d % vlInt32_ == 0;删除不再使用的 FILL_PASSES 常量;Init 补充 GetPlatformInfo 返回值的空指针校验。 - golden 脚本:golden.py 的 customize_inputs 移除将 indices 钳制到 [0, D) 的逻辑,改为由用例 input_data_ranges 显式给定取值,正确覆盖越界(负值 / ≥D)时「该位置整轴不命中、保留 var」的语义。 ## 关联的Issue #8432 ## 测试 - 样例代码 test_geir_arg_max_grad.cpp 修复后重新编译运行,验证输入 buffer 生命周期正确、无悬垂。 - tiling 边界判定修改后回归 ArgMaxGrad 用例,覆盖不同 inner / 维度形状的逐行直算与铺 tile 路径。 - golden 的 customize_inputs 调整后,越界下标用例可正确构造并验证「不命中、保留 var」行为。 ## 文档更新 - 更新 README.md、README_en.md:修正公式中的中文「其他」为英文「otherwise」,并补充算子调用文档链接。 ## 类型标签 - [x] Bug修复 - [ ] 新特性 - [ ] 性能优化 - [x] 文档更新 - [ ] 其他,请描述: ## AI/Agent生成声明 - [ ] AI辅助编写 See merge request: cann/ops-nn!13643 | 12 天前 | |
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 天前 | |
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 天前 | |
修复 ops-nn 接口文档扫描问题(错别字/标点/多字,117处) Co-authored-by: liujing987913<liujing407@h-partners.com> # message auto-generated for no-merge-commit merge: !13766 merge master into master 修复 ops-nn 接口文档扫描问题(错别字/标点/多字,117处) Created-by: liujing987913 Commit-by: liujing987913 Merged-by: cann-robot Description: ## 描述 <!--在这里详细描述你的改动,包括改动的原因和所采取的方法。--> - 背景:大模型扫描发现 ops-nn 接口文档问题 117 处 - 修改分类:多字/中文多字 70、同音字 17、形近字 3、引号未成对 4、代码括号 2、术语拼写 2、字母顺序 2(文本替换 100 处);MD 结构 17 处(tab→空格 6、列表空行 9、连续空行 2) - 涉及文件:docs 目录下 85 个接口文档 md - 验证:git diff 确认为纯文本替换(100 处)+ 纯结构操作(17 处),无代码内容误改;已人工复核 ## 关联的Issue <!-- 如果这个PR是为了解决特定的Issue,请在这里提供Issue链接。例如:关联Issue [#8245](https://gitcode.com/cann/ops-nn/issues/8245) ## 测试 <!--描述进行了哪些测试来验证你的改动。--> ## 文档更新 <!--如果这个PR包含文档的更新,请在这里指出。例如:更新了README.md文件。--> 本次 PR 更新了 ops-nn 接口文档 85 个 md 文件,修正错别字/标点/多字 100 处、MD 结构 17 处,详见 diff。 ## 类型标签 <!-- [x] 表示选中 --> - [ ] Bug修复 - [ ] 新特性 - [ ] 性能优化 - [x] 文档更新 - [ ] 其他,请描述: ## AI/Agent生成声明 <!-- [x] 表示选中 --> - [ ] AI辅助编写 See merge request: cann/ops-nn!13766 | 15 天前 | |
feat(unique): add Regbase values-only AI Core support Co-authored-by: ConanHuang<huangxiaobin1@huawei.com> # message auto-generated for no-merge-commit merge: !10993 merge feature_op_unique into master feat(unique): add Regbase values-only AI Core support Created-by: ConanHuang Commit-by: ConanHuang Merged-by: cann-robot Description: ## 描述 <!--在这里详细描述你的改动,包括改动的原因和所采取的方法。--> 为 aclnnUnique / aclnnUnique2 增加 Regbase values-only AI Core 路径,在单次 Kernel 调用中完成排序与去重,减少不必要的索引搬运和中间存储。 - 新增 arch35 Tiling、Kernel 和动态输出 shape 回传,接入 ACLNN 分流。 - 整理算子 L0、原型及 Ascend 950/350 构建注册;调整共享 radix 和 UniqueConsecutive 的大输入计算。 - 新增 ACLNN/Kernel 测试用例、golden 和 GEIR 示例。 新路径仅处理不返回 inverse/counts 且满足准入条件的调用,其余场景沿用既有路径;GE/ONNX 仍使用 AICPU。详细 Tiling 与 Kernel 设计见关联 Issue。 ## 关联的Issue https://gitcode.com/cann/ops-nn/issues/6187 ## 测试 - 二级冒烟通过 - UniqueWithCountsAndSorting 和 KthValue 各自 300+ kernel ST通过 - aclnnUnique aclnnUnique2 各自 170+ aclnn用例通过 - onnx geir 通路兼容性验证通过 ## 文档更新 <!--如果这个PR包含文档的更新,请在这里指出。例如:更新了README.md文件。--> 不涉及 ## 类型标签 <!-- [x] 表示选中 --> - [ ] Bug修复 - [x] 新特性 - [ ] 性能优化 - [ ] 文档更新 - [ ] 其他,请描述: ## AI/Agent生成声明 <!-- [x] 表示选中 --> - [x] AI辅助编写 See merge request: cann/ops-nn!10993 | 1 个月前 | |
feat: ThresholdV2 与 ConcatOffset 算子适配 ascend350/ascend960pr/ascend960dt Co-authored-by: esok11<yangsifa@huawei.com> # message auto-generated for no-merge-commit merge: !11280 merge f0928 into master feat: ThresholdV2 与 ConcatOffset 算子适配 ascend350/ascend960pr/ascend960dt Created-by: esok11 Commit-by: esok11 Merged-by: cann-robot Description: ## 描述 为 ThresholdV2(activation/threshold_v2)与 ConcatOffset(index/concat_offset)两个算子扩展芯片支持,新增适配 ascend350、ascend960pr、ascend960dt 产品型号。 **改动原因**:新芯片需要在算子定义、编译单元与 tiling 配置中显式声明支持,否则算子不会为这些芯片生成 kernel 及二进制配置。 **改动方法**: - activation/threshold_v2 - CMakeLists.txt:SUPPORT_COMPUTE_UNIT 新增 ascend350、ascend960pr、ascend960dt,SUPPORT_TILING_DIR 统一映射到 arch35。 - op_host/threshold_v2_def.cpp:为 ascend350、ascend960pr、ascend960dt 注册 AICore().AddConfig。 - op_kernel/CMakeLists.txt:COMPUTE_UNITS 补充 ascend350 ascend960pr ascend960dt。 - 新增 op_host/config/{ascend350,ascend960pr,ascend960dt}/threshold_v2_binary.json(沿用 arch35/ascend950 tiling 配置)。 - index/concat_offset - CMakeLists.txt:SUPPORT_COMPUTE_UNIT 新增 ascend960pr、ascend960dt(ascend350 原已支持),SUPPORT_TILING_DIR 同步补齐为 4 个 arch35。 - op_host/concat_offset_def.cpp:为 ascend960pr、ascend960dt 注册 AICore().AddConfig。 - 新增 op_kernel/CMakeLists.txt,声明 ascend950 ascend350 ascend960pr ascend960dt 编译单元。 - 新增 op_host/config/{ascend960pr,ascend960dt}/concat_offset_binary.json。 ## 关联的Issue - #6258 https://gitcode.com/cann/ops-nn/issues/6258 ## 测试 - 本 PR 为芯片适配配置变更,未新增/修改测试用例。 ## 文档更新 - 无 ## 类型标签 - [ ] Bug修复 - [x] 新特性 - [ ] 性能优化 - [ ] 文档更新 - [ ] 其他,请描述: ## AI/Agent生成声明 - [ ] AI辅助编写 See merge request: cann/ops-nn!11280 | 1 个月前 | |
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 天前 | |
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 天前 | |
fix: 修复 embedding_bag GEIR 示例无法编译运行的问题 Co-authored-by: fengjiawei1<fengjiawei5@huawei.com> # message auto-generated for no-merge-commit merge: !13800 merge fix-embedding-bag-geir-example into master fix: 修复 embedding_bag GEIR 示例无法编译运行的问题 Created-by: fengjiawei1 Commit-by: fengjiawei1 Merged-by: cann-robot Description: ## 描述 修复 index/embedding_bag/examples/test_geir_embedding_bag.cpp 无法编译运行的问题: - 4 个 ADD_INPUT 宏均使用 index 1,变量重定义导致编译失败,参照 gather_v2 示例重写宏并使用递增 index - 宏内固定生成 float32 数据,int32 输入(indices/offsets)获得非法索引位模式,改为按 dtype 模板化生成 - indices/offsets/per_sample_weights shape 误用二维 weight shape,修正为 {4}/{2}/{4} - 补设 mode="sum" 等全部 5 个属性(per_sample_weights 仅 sum 模式支持) - argv[1] 无校验段错误、AddGraph 返回值未检查、输出按 float 硬打印,均修复 - 补齐 4 个输出 desc(y/offset2bag/bag_size/max_indices) 补充测试资产: - 新增 tests/assets/golden_cross_check.py,为 kernel/aclnn/e2e 路径提供统一的 torch.ops.aten._embedding_bag 双标杆 golden 交叉校验 ## 关联的Issue 无 ## 测试 - CANN 9.2.0 aarch64 环境编译链接通过(-lge_runner -lge_compiler -ldflow_runner -lgraph -lgraph_base -lascendcl -lc_sec) - 无 NPU 环境运行验证:程序正常启动并在初始化处优雅返回,无段错误 - 测试数据:weight 全 1(4×2)、indices{0,1,2,3}、offsets{0,2}、mode=sum,期望输出 y={2,2} 全 2.0 ## 文档更新 无 ## 类型标签 - [x] Bug修复 - [ ] 新特性 - [ ] 性能优化 - [ ] 文档更新 - [ ] 其他,请描述:测试资产补充 ## AI/Agent生成声明 - [x] AI辅助编写 See merge request: cann/ops-nn!13800 | 15 天前 | |
修复 ops-nn 接口文档扫描问题(错别字/标点/多字,117处) Co-authored-by: liujing987913<liujing407@h-partners.com> # message auto-generated for no-merge-commit merge: !13766 merge master into master 修复 ops-nn 接口文档扫描问题(错别字/标点/多字,117处) Created-by: liujing987913 Commit-by: liujing987913 Merged-by: cann-robot Description: ## 描述 <!--在这里详细描述你的改动,包括改动的原因和所采取的方法。--> - 背景:大模型扫描发现 ops-nn 接口文档问题 117 处 - 修改分类:多字/中文多字 70、同音字 17、形近字 3、引号未成对 4、代码括号 2、术语拼写 2、字母顺序 2(文本替换 100 处);MD 结构 17 处(tab→空格 6、列表空行 9、连续空行 2) - 涉及文件:docs 目录下 85 个接口文档 md - 验证:git diff 确认为纯文本替换(100 处)+ 纯结构操作(17 处),无代码内容误改;已人工复核 ## 关联的Issue <!-- 如果这个PR是为了解决特定的Issue,请在这里提供Issue链接。例如:关联Issue [#8245](https://gitcode.com/cann/ops-nn/issues/8245) ## 测试 <!--描述进行了哪些测试来验证你的改动。--> ## 文档更新 <!--如果这个PR包含文档的更新,请在这里指出。例如:更新了README.md文件。--> 本次 PR 更新了 ops-nn 接口文档 85 个 md 文件,修正错别字/标点/多字 100 处、MD 结构 17 处,详见 diff。 ## 类型标签 <!-- [x] 表示选中 --> - [ ] Bug修复 - [ ] 新特性 - [ ] 性能优化 - [x] 文档更新 - [ ] 其他,请描述: ## AI/Agent生成声明 <!-- [x] 表示选中 --> - [ ] AI辅助编写 See merge request: cann/ops-nn!13766 | 15 天前 | |
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 天前 | |
docs(expand_into_jagged_permute): document input offset endpoint Co-authored-by: liushaxiangdong<jinpeng11@huawei.com> # message auto-generated for no-merge-commit merge: !13853 merge master into master docs(expand_into_jagged_permute): document input offset endpoint Created-by: liushaxiangdong Commit-by: liushaxiangdong Merged-by: cann-robot Description: ## 描述 <!--在这里详细描述你的改动,包括改动的原因和所采取的方法。--> expand_into_jagged_permute文档添加约束 ## 关联的Issue <!-- 如果这个PR是为了解决特定的Issue,请在这里提供Issue链接。例如:关联Issue #000--> ## 测试 <!--描述进行了哪些测试来验证你的改动。--> ## 文档更新 <!--如果这个PR包含文档的更新,请在这里指出。例如:更新了README.md文件。--> ## 类型标签 <!-- [x] 表示选中 --> - [ ] Bug修复 - [ ] 新特性 - [ ] 性能优化 - [ x] 文档更新 - [ ] 其他,请描述: ## AI/Agent生成声明 <!-- [x] 表示选中 --> - [ ] AI辅助编写 See merge request: cann/ops-nn!13853 | 15 天前 | |
fix(index): 规范 GatherElements 相关错误码上报 Co-authored-by: huang-jz<huangjunzhe2@h-partners.com> # message auto-generated for no-merge-commit merge: !13775 merge tmp/gather-elements-error-code-ut-cleanup-20261105 into master fix(index): 规范 GatherElements 相关错误码上报 Created-by: huang-jz Commit-by: huang-jz Merged-by: cann-robot Description: GatherElements 的参数校验错误改为匹配问题含义的正式错误码,保留原有返回值与正常执行逻辑;已有底层首报的调用失败路径仅记录上下文,避免重复上报。arch22 Tiling 的上报直接写在原函数分支内,不新增 namespace、函数或 lambda。 验证(提交 d31f4fe18): - 全 7 文件完整 pre-commit 通过,包括 clang-format、OAT 实际扫描;hook 未修改任何文件。 - Tiling、Host UT、API UT、ONNX 对象构建通过;现有 ASan Host 11/11、API 93/93 通过,进程均 exit 0。 - 独立非 UT 配置构建正式 oponnx_plugin_nn 共享库成功;加载既有 libruntime.so 依赖后,RTLD_NOW 加载成功。ldd -r 的 rtGetSocVersion 来自未修改的 MaxPool 插件,不是本次新增符号。 - 最终 PR 仅 6 个文件;arch35/A5 和 UT 零改动,未新增或删除 UT。 See merge request: cann/ops-nn!13775 | 16 天前 | |
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 天前 | |
修改gatherNd算子dma模板编译执行触发wwarning 日志打屏问题 Co-authored-by: xingtaowu<wuxingtao3@h-partners.com> # message auto-generated for no-merge-commit merge: !13764 merge fix_gathernd_warn into master 修改gatherNd算子dma模板编译执行触发wwarning 日志打屏问题 Created-by: xingtaowu Commit-by: xingtaowu Merged-by: cann-robot Description: ## 描述 gather_nd 算子 DMA 模板在编译执行阶段出现 warning 日志打屏的问题。在 index/gather_nd/op_kernel/arch35/gather_nd_simd_dma.h 的 GatherNdSimdDma 类 DealIndices 相关逻辑中,将两处未限定命名空间的 Move 调用显式限定为 AscendC::Reg::Move <!--在这里详细描述你的改动,包括改动的原因和所采取的方法。--> ## 关联的Issue https://gitcode.com/cann/ops-nn/issues/8295 <!-- 如果这个PR是为了解决特定的Issue,请在这里提供Issue链接。例如:关联Issue #000--> ## 测试 1. 修改之后,执行复现问题脚本,warning 日志不再出现 2. 冒烟ok, st 用例通过 <!--描述进行了哪些测试来验证你的改动。--> ## 文档更新 <!--如果这个PR包含文档的更新,请在这里指出。例如:更新了README.md文件。--> ## 类型标签 <!-- [x] 表示选中 --> - [x] Bug修复 - [ ] 新特性 - [ ] 性能优化 - [ ] 文档更新 - [ ] 其他,请描述: ## AI/Agent生成声明 <!-- [x] 表示选中 --> - [ ] AI辅助编写 See merge request: cann/ops-nn!13764 | 13 天前 | |
KirinX90/Kirin9030系列支持QuantBatchMatmulV4/DynmicQuant/RmsNorm/Glue/ScatterNdUpdate/GatherV2/MatMulV3 Co-authored-by: chenlong1<chenlong1@huawei.com> Co-authored-by: weixin_56971601<liusen59@huawei.com> Co-authored-by: xiongtingxiang<xiongtingxiang@huawei.com> Co-authored-by: Andyyliu<liuyuzhou8@huawei.com> # message auto-generated for no-merge-commit merge: !13547 merge master into master KirinX90/Kirin9030系列支持QuantBatchMatmulV4/DynmicQuant/RmsNorm/Glue/ScatterNdUpdate/GatherV2/MatMulV3 Created-by: chenlong1 Commit-by: chenlong1;Andyyliu;weixin_56971601;xiongtingxiang Merged-by: cann-robot Description: ## 描述 KirinX90/Kirin9030系列支持QuantBatchMatmulV4/DynmicQuant/RmsNorm/Glue/ScatterNdUpdate/GatherV2/MatMulV3 ## 关联的Issue https://gitcode.com/cann/ops-nn/issues/7796 ## 测试 相关算子已在Kirin平台完成精度测试,及一个整网模型测试 ## 文档更新 算子README新增对KirinX90、Kirin9030支持 ## 类型标签 <!-- [x] 表示选中 --> - [ ] Bug修复 - [ x] 新特性 - [ ] 性能优化 - [ x] 文档更新 - [ ] 其他,请描述: ## AI/Agent生成声明 <!-- [x] 表示选中 --> - [ ] AI辅助编写 See merge request: cann/ops-nn!13547 | 16 天前 | |
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 | 4 个月前 | |
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 天前 | |
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 天前 | |
fix(index): 整改A2及A2/A5共用错误码路径 Co-authored-by: fazhenyao<fazhenyao@h-partners.com> # message auto-generated for no-merge-commit merge: !13614 merge codex/index-fill-sorted-error-codes into master fix(index): 整改A2及A2/A5共用错误码路径 Created-by: fazhenyao123 Commit-by: fazhenyao Merged-by: cann-robot Description: 《CANN四仓错误码调用扫描_2026-11-03》反馈,index_fill 和 inplace_index_add_with_sorted 的部分 Host 失败分支存在错误码调用不规范的问题:输入参数异常、框架提供的对象缺失及平台信息异常仍使用通用错误日志或未区分错误来源的空指针检查,无法准确区分用户输入问题与框架/平台内部问题,部分诊断也未明确指出参数名和实际值。 本次整改覆盖输入/输出 Shape 为空、输入数据类型或维度/Shape 不符合约束,以及 compileInfo、platformInfo、UB 大小和核数异常等已有失败路径。根据错误语义使用公共参数报错宏或公共 ErrorManager 接口上报正式错误码,并补充算子名、参数名、实际值或失败原因,保持原有校验条件、失败返回值及正常计算逻辑。 本 PR 的范围为 A2 arch22 实现及 A2/A5 共用的 InferShape;仅涉及 A5 arch35 的实现不在本次整改范围内。 保留4个生产文件: - A2 arch22:index_fill_tiling.cpp、inplace_index_add_with_sorted_tiling.cpp; - A2/A5 共用 InferShape:index_fill_infershape.cpp、inplace_index_add_with_sorted_infershape.cpp。 A5-only 的7个 arch35 cpp 已恢复到 master,两个辅助头文件已删除,不再提交 A5-only 代码。错误码实现直接调用公共 REPORT_PREDEFINED_ERR_MSG,保留原返回值和参数诊断。 基准 35e6673de57c5277fba4267ce368b80d36f1b390,head d293b0b4137c9a625b5bad5e8b73acfa9ced0f32。A5_ci 独立验证目录已按基线恢复,95个算子文件逐文件一致,临时测试源码和测试 CMake 已清理。此前保留路径的 host UT 与编译验证结果已记录在本地报告;本次收缩没有继续修改 A5 源码。 最终 PR 差异仅4个 cpp,无UT、测试CMake或辅助头文件。 服务器验证补充(2026-11-05): - A2(910B3,CANN weekly 20261021):nn_op_host_ut、ophost_nn_ut编译/链接通过;聚焦host UT 8/8通过。 - A5_1(950PR,CANN weekly 20261014):相同目标编译/链接通过;聚焦host UT 10/10通过。A5-only arch35保留原实现,共用InferShape参与编译。 - 扩展相关过滤在A2为20/28通过、A5_1为10/30通过;失败均为服务器已有ByteAndDouble/IndexFillByteWidthTiling参数化用例。使用本PR真实基准35e6673de57c5277fba4267ce368b80d36f1b390的对应源码重编译后,8/20个失败及逐用例清单完全相同,未新增失败;不宣称全量测试通过。 - 验证文件与head d293b0b4137c9a625b5bad5e8b73acfa9ced0f32逐文件哈希一致(LF归一化)。只使用独立runs源码副本,临时覆盖的4个文件均已恢复、4/4校验一致,原始仓库未修改。 - 此次范围为host编译和UT,未运行设备ST、全仓构建或完整远端CI。UT及测试CMake不提交PR,日志已归档本地。 - [x] Bug修复 - [x] AI辅助编写 See merge request: cann/ops-nn!13614 | 16 天前 | |
docs(index_fill_d): 补充index为空数组时的行为说明 Co-authored-by: CherryRanH<ranhe2@huawei.com> # message auto-generated for no-merge-commit merge: !14031 merge docs-indexfill-empty-index into master docs(index_fill_d): 补充index为空数组时的行为说明 Created-by: CherryRanH Commit-by: CherryRanH Merged-by: cann-robot Description: ## 描述 aclnnIndexFillTensor/aclnnInplaceIndexFillTensor资料补充支持空tensor说明 ## 关联的Issue https://gitcode.com/Alice_zhou/issue/issues/54 https://gitcode.com/Alice_zhou/issue/issues/68 ## 测试 <!--描述进行了哪些测试来验证你的改动。--> ## 文档更新 更新了aclnnIndexFill&aclnnInplaceIndexFill.md、aclnnIndexFillTensor&aclnnInplaceIndexFillTensor.md、aclnnIndexFill&aclnnInplaceIndexFill_en.md、aclnnIndexFillTensor&aclnnInplaceIndexFillTensor_en.md文件 ## 类型标签 <!-- [x] 表示选中 --> - [ ] Bug修复 - [ ] 新特性 - [ ] 性能优化 - [x] 文档更新 - [ ] 其他,请描述: ## AI/Agent生成声明 <!-- [x] 表示选中 --> - [ ] AI辅助编写 See merge request: cann/ops-nn!14031 | 12 天前 | |
fix(index): 整改五个索引算子的通用内部错误码上报 Co-authored-by: fazhenyao<fazhenyao@h-partners.com> # message auto-generated for no-merge-commit merge: !12754 merge codex/index-error-code-remediation into master fix(index): 整改五个索引算子的通用内部错误码上报 Created-by: fazhenyao123 Commit-by: fazhenyao Merged-by: cann-robot Description: 关联 Issue:[ops-nn #7444](https://gitcode.com/cann/ops-nn/issues/7444)。 五个索引算子的参数、InferShape、Tiling 错误原先使用通用内部错误入口,launcher 外层还会追加内部码。本变更为可确定的参数/执行根因接入相应注册错误码,补充实际值和约束,外层透传原返回。 范围:index_check、linear_index_v2、linear_index、index_put_with_sort、index_put。包含 LinearIndexV2 的 UB 扣减下溢防护、indicesMask 实例数量边界及 Ascend950 动态 shape 判空修复。关于 UB <= 0 的意见已核对:字段是 uint64_t,保留等价实现。 按用户指定,LinearIndex 的 AllocTensor、AllocIntArray、ConvertToTensor 返回空时使用 ACLNN_ERR_INNER_NULLPTR,消息分别指出 API 和 index、shapeArray、shapeTensor,仍返回 nullptr。目标宏把该状态映射为 EZ9999,这是用户明确指定的内部诊断,不宣称已完成正式资源码治理。 本地验证(A5_ci / CANN 9.2.0-beta.2): - 新增分配 UT 7/7 通过:三个 API × combine 两分支共六个参数化用例,每个重复两次;12 次受控 Object 分配失败均执行真实 executor 方法并返回 nullptr,未进入 launcher,ErrorManager 恰有一条 EZ9999,API/对象名正确。另一个用例验证两个 combine 分支的正常分配并抵达 launcher 桩,不执行设备 kernel。 - 本地保留的 host UT 重跑 26/26 通过;相关 launcher UT 重跑 6/6 通过。测试源码与实际运行目录 SHA256、GTest XML 和日志已保存本地。 - ophost_nn_opapi_obj 编译通过;上一轮四个受影响目标、实际 include trace 与预处理验证证据保留。当前 LinearIndex 对象由真实编译命令构建,源码 SHA256 与最终提交一致;clang-format 18.1.8 和最终 PR diff --check 通过。 - 按用户要求,所有本任务新增/修改的 UT 及配套测试 CMake 均已从 PR 最终差异撤下,仅保存在本地。最终 PR 只含 12 个生产文件。测试撤下提交没有改变已验证的生产代码;不把测试源码提交到 PR。 launcher 依赖修复:[opbase !1081](https://gitcode.com/cann/opbase/merge_requests/1081),head c122630f946cd0e7a982624fd843f087865efc8a。固定依赖仍为 0c5e25790f67e2c6f60c1df36d74d28f0e08ecfc,依赖合入/交付尚待完成。 验证边界:分配 UT 仅证明本次受控 Object 分配返回空的分支,不覆盖所有构造异常或真实系统 OOM。更深层已报错的构造异常仍可能与外层报错重复;nnopbase 实际 allocator 的正式资源首报未在本轮治理。其他 launcher 根因与完整新 host 插件设备集成也未全部验证。原冻结台账仍为 47 FIXED / 9 BLOCKED,不宣称全链路完成。未将全仓 pre-commit 或远端 CI 写为通过。 目标 master;基于 f2ab9177000e2c447c98187eb3260825cd4755cf,当前 head f93ac32120d4fea46dab660d66d751947cec0e18。 - [x] Bug 修复 - [x] AI 辅助编写 See merge request: cann/ops-nn!12754 | 25 天前 | |
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 天前 | |
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 天前 | |
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 天前 | |
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 天前 | |
feat(index): inplace_add适配ascend960dt Co-authored-by: SimonZzz<zhouquan79@huawei.com> # message auto-generated for no-merge-commit merge: !13476 merge fixIA into master feat(index): inplace_add适配ascend960dt Created-by: SimonZzz Commit-by: SimonZzz Merged-by: cann-robot Description: ## 描述 <!--在这里详细描述你的改动,包括改动的原因和所采取的方法。--> 为 InplaceAdd 使能 ascend960dt(dav_9201):补齐构建配置与二进制清单,并在 scatter_add 图优化的 inplace_add fusion pass 中放行 960dt 原生实现。不改算子 kernel 与算法。 **问题现象:** ascend960dt 上 InplaceAdd 无原生二进制;且 scatter_add 图优化中的 inplace_add fusion pass 仅在 950/350(kNativeInplaceAddSoc/ops::IsDav3510Arch())保留原节点,960dt 会被改写为 legacy 融合实现,无法派发原生算子。 **修复方式:** - 构建侧(对照 f362ac7ef"960_maxpoolv3grad适配"的既有模式): - index/inplace_add/CMakeLists.txt:SUPPORT_COMPUTE_UNIT 增加 ascend960dt(tiling 目录同用 arch35); - index/inplace_add/op_kernel/CMakeLists.txt:COMPUTE_UNITS 增加 ascend960dt; - op_host/inplace_add_def.cpp:AddConfig("ascend960dt", aicoreConfig); - 新增 op_host/config/ascend960dt/inplace_add_binary.json:13 条 dtype 条目,与 ascend950 版一一对应(bf16/complex32/complex64/float16/float32/int8-64/uint8-64,仅 bin_filename 后缀 _950→_960dt)。 - 图优化侧:index/scatter_add/op_graph/fusion_pass/inplace_add_fusion_pass.cpp 的 IsSupportSoc()(:113)追加 curSoc == "Ascend960DT",写法与 f362ac7ef 在 sorted_sparse_segment_mean_grad / gather / max_pool_grad 三个 fusion pass 的 960dt 适配一致(short_soc_version 字符串比较 + 既有 IsDav3510Arch());同步更新函数头注释。960dt 由此与 950 一样跳过 legacy 融合、保留原节点并派发原生 InplaceAdd 二进制。 ## 关联的Issue <!-- 如果这个PR是为了解决特定的Issue,请在这里提供Issue链接。例如:关联Issue #000--> https://gitcode.com/cann/ops-nn/issues/6872 ## 测试 <!--描述进行了哪些测试来验证你的改动。--> 已完成的验证: - inplace_add_binary.json JSON 合法性、13/13 dtype 条目与 ascend950 版一一对应(仅 soc 后缀差异)✓ - 融合判断写法与 f362ac7ef 先例逐字对齐(short_soc_version 为 "Ascend960DT",与 GetCurrentSocVersion() 返回源一致)✓ - scripts/kernel/binary_config/ascendc_config.json 核对:plain InplaceAdd 原本即不在清单内(ascend950/350 亦未列),无需同步 ✓ - pre-commit 全过(clang-format / codespell / OAT)✓ - 待真机回归:ascend960dt 上原生 InplaceAdd 二进制派发、scatter_add 图模式端到端(确认图未被改写为 legacy 融合)、13 个 dtype 冒烟 ## 文档更新 <!--如果这个PR包含文档的更新,请在这里指出。例如:更新了README.md文件。--> 不涉及 ## 类型标签 <!-- [x] 表示选中 --> - [ ] Bug修复 - [x] 新特性 - [ ] 性能优化 - [ ] 文档更新 - [ ] 其他,请描述: ## AI/Agent生成声明 <!-- [x] 表示选中 --> - [x] AI辅助编写 See merge request: cann/ops-nn!13476 | 12 天前 | |
inplace_index_add、scatter_update、sparse_segment_mean_grad 算子支持 Ascend960dt Co-authored-by: xiaodong666<yuanxiaodong6@huawei.com> # message auto-generated for no-merge-commit merge: !11639 merge dv121_to_master into master inplace_index_add、scatter_update、sparse_segment_mean_grad 算子支持 Ascend960dt Created-by: xiaodong666 Commit-by: xiaodong666 Merged-by: cann-robot Description: ## 描述 <!--在这里详细描述你的改动,包括改动的原因和所采取的方法。--> inplace_index_add、scatter_update、sparse_segment_mean_grad 算子支持 Ascend960dt ## 关联的Issue <!-- 如果这个PR是为了解决特定的Issue,请在这里提供Issue链接。例如:关联Issue #000--> 关联Issue [#6780](https://gitcode.com/cann/ops-nn/issues/6780) ## 测试 <!--描述进行了哪些测试来验证你的改动。--> st用例和冒烟的验证 ## 文档更新 <!--如果这个PR包含文档的更新,请在这里指出。例如:更新了README.md文件。--> NA ## 类型标签 <!-- [x] 表示选中 --> - [ ] Bug修复 - [x] 新特性 - [ ] 性能优化 - [ ] 文档更新 - [ ] 其他,请描述: ## AI/Agent生成声明 <!-- [x] 表示选中 --> - [x] AI辅助编写 See merge request: cann/ops-nn!11639 | 1 个月前 | |
fix(index): 整改A2及A2/A5共用错误码路径 Co-authored-by: fazhenyao<fazhenyao@h-partners.com> # message auto-generated for no-merge-commit merge: !13614 merge codex/index-fill-sorted-error-codes into master fix(index): 整改A2及A2/A5共用错误码路径 Created-by: fazhenyao123 Commit-by: fazhenyao Merged-by: cann-robot Description: 《CANN四仓错误码调用扫描_2026-11-03》反馈,index_fill 和 inplace_index_add_with_sorted 的部分 Host 失败分支存在错误码调用不规范的问题:输入参数异常、框架提供的对象缺失及平台信息异常仍使用通用错误日志或未区分错误来源的空指针检查,无法准确区分用户输入问题与框架/平台内部问题,部分诊断也未明确指出参数名和实际值。 本次整改覆盖输入/输出 Shape 为空、输入数据类型或维度/Shape 不符合约束,以及 compileInfo、platformInfo、UB 大小和核数异常等已有失败路径。根据错误语义使用公共参数报错宏或公共 ErrorManager 接口上报正式错误码,并补充算子名、参数名、实际值或失败原因,保持原有校验条件、失败返回值及正常计算逻辑。 本 PR 的范围为 A2 arch22 实现及 A2/A5 共用的 InferShape;仅涉及 A5 arch35 的实现不在本次整改范围内。 保留4个生产文件: - A2 arch22:index_fill_tiling.cpp、inplace_index_add_with_sorted_tiling.cpp; - A2/A5 共用 InferShape:index_fill_infershape.cpp、inplace_index_add_with_sorted_infershape.cpp。 A5-only 的7个 arch35 cpp 已恢复到 master,两个辅助头文件已删除,不再提交 A5-only 代码。错误码实现直接调用公共 REPORT_PREDEFINED_ERR_MSG,保留原返回值和参数诊断。 基准 35e6673de57c5277fba4267ce368b80d36f1b390,head d293b0b4137c9a625b5bad5e8b73acfa9ced0f32。A5_ci 独立验证目录已按基线恢复,95个算子文件逐文件一致,临时测试源码和测试 CMake 已清理。此前保留路径的 host UT 与编译验证结果已记录在本地报告;本次收缩没有继续修改 A5 源码。 最终 PR 差异仅4个 cpp,无UT、测试CMake或辅助头文件。 服务器验证补充(2026-11-05): - A2(910B3,CANN weekly 20261021):nn_op_host_ut、ophost_nn_ut编译/链接通过;聚焦host UT 8/8通过。 - A5_1(950PR,CANN weekly 20261014):相同目标编译/链接通过;聚焦host UT 10/10通过。A5-only arch35保留原实现,共用InferShape参与编译。 - 扩展相关过滤在A2为20/28通过、A5_1为10/30通过;失败均为服务器已有ByteAndDouble/IndexFillByteWidthTiling参数化用例。使用本PR真实基准35e6673de57c5277fba4267ce368b80d36f1b390的对应源码重编译后,8/20个失败及逐用例清单完全相同,未新增失败;不宣称全量测试通过。 - 验证文件与head d293b0b4137c9a625b5bad5e8b73acfa9ced0f32逐文件哈希一致(LF归一化)。只使用独立runs源码副本,临时覆盖的4个文件均已恢复、4/4校验一致,原始仓库未修改。 - 此次范围为host编译和UT,未运行设备ST、全仓构建或完整远端CI。UT及测试CMake不提交PR,日志已归档本地。 - [x] Bug修复 - [x] AI辅助编写 See merge request: cann/ops-nn!13614 | 16 天前 | |
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 天前 | |
fix(inplace_scatter_add): 加固 aclnn 校验/tiling 拦截/kernel 守卫 Co-authored-by: xuejinghui<xuejinghui@huawei.com> # message auto-generated for no-merge-commit merge: !13591 merge fix/inplacescatteradd-fix-1+2+3+4+5+6+7+8+9+10+11+12+13+14+15 into master fix(inplace_scatter_add): 加固 aclnn 校验/tiling 拦截/kernel 守卫 Created-by: xuejinghui Commit-by: xuejinghui Merged-by: cann-robot Description: ## 根因与修复摘要 对 InplaceScatterAdd(aclnnIndexAdd / aclnnIndexAddV2, index/inplace_scatter_add)的质量加固排查发现多类缺陷(#8069):GE 图模式缺推导注册(E19999 不可用)、updates 形状违例无校验(放行至 kernel GM 越界读触发设备错误)、aclnn 第一段校验族缺陷(alpha 转换语义误拒、错误码与错误表冲突、判空缺失、日志错位、stride 窄化无守卫)、uint32 回绕族(循环上界乘积回绕、UintDiv 域外静默算错)、仓内测试资产覆盖缺失(ST 执行器从未触达 V2 mode 分支)、文档与示例失实。本 PR 按修复面逐项处置,单 PR 关联 #8069 问题闭环(GE 图模式现象不随本 PR 修复,见下方“范围外说明”)。 ## 逐修复面清单 | 修复面 | 内容 | |---|---| | **arch35 tiling 校验 + coreNum 失败化** | tiling 新增 ValidateUpdatesInput 跨输入校验(updates 与 var/indices 形状/dtype/秩不一致在 tiling 层拒绝);coreNum==0 由静默钳 1 改为失败化,不再掩盖平台查询故障 | | **op_api 校验族** | alpha 浮点×整型 self 按仓级类型转换语义放开(CanCast 受理+转换,与 arch22/910b 原生 V1 路径及 torch eager 一致,截断语义文档显式声明);0 维 self 双路由直接 161002(对齐错误表);mode=0 违例 561103→161002;DoIndexAddWithSorted 两处 CreateView 与 V2 分支 Cast 判空;dtype 拒绝日志实参/文案修正;确定性路由 int64 stride 窄化加守卫回退 | | **kernel 乘积与 UintDiv 守卫 + 64 位路由** | 每核循环上界乘积在 uint64 求值比较;新增 CanUse32BitLoop 路由谓词:乘积回绕域、UintDiv 回绕域(2^(32-shift)·divisor)、shift==32 越界移位域一律走 64 位变体 | | **ST 执行器 V2 直达** | ST 执行器补 get_cpp_func_signature_type 声明签名直达调用,mode 参数真实触达 aclnnIndexAddV2 入口 | | **看护 UT** | 新增 updates 违例拒绝、alpha 放开与 mode0 违例、0 维与 dim 越界、stride 守卫 fallback 等看护用例;跨构建面行为探测(arch22 无跨输入校验的面 SKIP 并注明,arch35 面断言不变) | | **文档示例与仓卫生** | README/四份接口文档 zh+en 口径对齐实现(就地语义声明、index 值域改述、alpha 行列错位修正、V2 公开口径澄清、错误表无支撑行处置);两示例恢复真实调用+错误处理+资源清理;仓内 20 文件终态格式化+许可头对齐仓模板 | ## 验证摘要 - **Host UT**:ascend950 直跑 47/47(op_host 7 + op_api 40),零 SKIP、基线用例零缺失、覆盖率不倒退(op_host 聚合 48.4%→50.5%)。 - **push 门禁(pre-push hook,双构建面)**:JIT build / ophost UT(ascend910b + ascend950)/ opgraph UT / opkernel UT(ascend910b 基线用例 8/8)/ ascend950 pkg 全部 PASSED。 - **TTK 全量回归**:586 行对账 PASS→FAIL(真实回归)=0;FAIL→PASS 164(真修复 115 + 环境差异 49);sanitizer memcheck 37/37 零检出。GEIR 图编译通路行系 op_graph 存续时点的证据,op_graph 已撤除、该通路回归不可用形态(见下方“范围外说明”),kernel/aclnn 通路行不受影响。waived 10 键(bool 输出×8:bool 非本算子 def 支持范围、执行内核在跨算子目录;index 值域×2:文档口径改述后预期拒绝形态)与 6 项环境缺口(无三方 XPU 端点、≥2^32 元素资源不可达等)单列,见下"范围外说明"。 - **代码评审**:F=0(S 级建议 4 项中 2 项已随本 PR 闭环,其余 open 有据登记)。 - **本地 CI 预检**:pre-commit 全 hooks Passed(clang-format v18.1.8 / codespell / OAT 合规 41 文件 All checks passed);红线检查改动全部位于 index/inplace_scatter_add/ 内。 ## 范围外说明(#8069 关联现象的处置口径) - **GE 图模式(GEIR 路由/图编译)**:GE 图模式(GEIR 路由/图编译)不在本算子支持范围,#8069 中对应现象(GE 图编译期 E19999 不可用等)不随本 PR 修复。 - **bool 输出**:执行内核在跨算子目录 index/inplace_index_add,bool 非本算子 def 支持范围——README 改述实际分派行为,不改实现。 - **index 值域校验**:文档改口径(值域不校验、负值 kernel 守卫静默跳过、越界行为经执行期异常呈现),不做实现侧校验(避免 D2H 同步开销)。 - **arch22(910b)面 updates 校验/coreNum 失败化**:目标芯片 ascend950(arch35)不经该路径,arch22 半边维持现状;>2^32 回绕风险对 910b 大规格用户遗留登记。 - **Simt::UintDiv uint32 域内静默算错**:CANN 框架层行为,本 PR 以 CanUse32BitLoop 守卫路由规避,不修改框架。 Fixes #8069 See merge request: cann/ops-nn!13591 | 13 天前 | |
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 天前 | |
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 天前 | |
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 天前 | |
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 天前 | |
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 天前 | |
feat(map_index): 补充InferShape/InferDataType注册及UT看护,InferDataType走op_graph独立链(IMPL_OP),显式拒绝动态shape,统一24000/256上限 Co-authored-by: ywx1080114<yuanbin22@huawei.com> # message auto-generated for no-merge-commit merge: !12499 merge infershape-map-index into master feat(map_index): 补充InferShape/InferDataType注册及UT看护,InferDataType走op_graph独立链(IMPL_OP),显式拒绝动态shape,统一24000/256上限 Created-by: yuanbin_22 Commit-by: ywx1080114 Merged-by: cann-robot Description: ## 描述 <!--在这里详细描述你的改动,包括改动的原因和所采取的方法。--> 作为 Infershape 整改的一部分,为 MapIndex 算子补充 InferShape 推导注册与 InferDataType 独立注册(op_graph 独立链,IMPL_OP)及 UT 看护,共 13 个文件(+708 -31): **op_host(InferShape):** - 新增 op_host/map_index_infershape.cpp:InferShape4MapIndex 校验 x/data_seq 均为 1 维;不支持动态场景(未知维 -1 / 未知秩 -2 显式拒绝);上限约束与 tiling 统一(x 长度 ≤ 24000、gear(data_seq_length / x_length)≤ 256,对应 map_index_tiling_arch35.cpp 的 X_MAX_DIM0/DATA_SEQ_MAX_DIM0,无平台分支);校验 x 长度非零、data_seq 长度为 x 整数倍、level_index 长度 = data_seq_length / x_length(未知维/未知秩时跳过);输出为 0 维标量(SetScalar);注册 IMPL_OP_INFERSHAPE(MapIndex).InferShape(InferShape4MapIndex);输入/输出索引使用具名常量(X_INDEX/DATA_SEQ_INDEX/LEVEL_INDEX_INDEX/Y_INDEX); - map_index_def.cpp:DynamicRankSupportFlag/DynamicShapeSupportFlag 由 true 改为 false,配合动态场景显式拒绝; - map_index_tiling_arch35.cpp:报错信息优化(整除校验补充 x 长度、gear 上限按 DATA_SEQ_MAX_DIM0 提示、修正文案)。 **op_graph(InferDataType 独立链):** - 新增 op_graph/map_index_graph_infer.cpp:IMPL_OP(MapIndex).InferDataType(InferDataTypeMapIndex) 独立注册链,输出 dtype 固定为 DT_INT32(映射索引结果,不随输入 dtype),与 op_host 的 InferShape 链解耦; - 配套新增 op_graph/CMakeLists.txt(add_graph_plugin_sources())。 **构建与示例:** - CMakeLists.txt:SUPPORT_COMPUTE_UNIT soc 名修正 ascend910_95 → ascend950; - examples/test_geir_map_index.cpp:data_seq 注释上限由 100 修正为 256(对齐统一上限),输出 desc 由 ge::Shape({1}) 修正为 ge::Shape()(0 维标量,由注册的 InferShape 推导)。 **文档(中英文同步):** - README.md 补充产品支持情况(950PR/950DT、Atlas A3 训练/推理系列支持)、功能说明、参数说明、约束说明(x 长度 [1, 24000]、gear 上限 256、动态 shape 拒绝、level_index 未知时跳过校验——统一口径,无平台分支)、调用说明(仅支持图模式 GE 调用); - README_en.md 同步英文版(97 行),章节对齐仓库英文 README 惯例(Applicable Products/Function/Parameters/Constraints/Invocation Description),消除中英文未同步告警。 **代码规范整改(检视意见):** - activation/gelu_v2/op_graph/fusion_pass/gelu_v2_onnx_fusion_pass.cpp:边界节点名参数由 const char* 重构为 const std::string&(空判断改用 .empty()、nullptr 传参改 ""),MeetRequirements/Replacement 的 matchResult 参数重命名为 match_result,消除裸指针与命名不一致; - tests/ut/op_host/test_map_index_infershape.cpp:UT 变量命名规范化(input_shape_N → xShape/dataSeqShape/levelIndexShape,与参数语义对应)。 ## 关联的Issue <!-- 如果这个PR是为了解决特定的Issue,请在这里提供Issue链接。例如:关联Issue #000--> - 关联 Issue #7148 ## 测试 <!--描述进行了哪些测试来验证你的改动。--> 新增 UT 共 15 个用例: - tests/ut/op_host/test_map_index_infershape.cpp 14 个 TEST:正向推导(输出 0 维标量)、level_index=-1 跳过校验成功、反向 11 例(x 非 1 维、非整数倍、level_index 长度不符、x/data_seq/level_index 未知维或未知秩拒绝、x 长度为 0、超 gear 上限、超 x 长度上限 24000、边界最大值 24000/256 通过校验),覆盖 ASCEND_NPU_ARCH 模拟 3510 平台; - tests/ut/op_graph/test_map_index_graph_infer_pass.cpp 1 个参数化 TEST_P:直接调用导出的 ops::InferDataTypeMapIndex 函数,断言输出 dtype 为 DT_INT32。 ## 文档更新 <!--如果这个PR包含文档的更新,请在这里指出。例如:更新了README.md文件。--> - 补充 index/map_index/README.md(+93):产品支持情况、功能说明、参数说明、统一口径约束说明、调用说明; - 同步 index/map_index/README_en.md(+97 -5):完整英文版,消除中英文未同步告警; - 修正 examples/test_geir_map_index.cpp 注释与输出 desc。 ## 类型标签 <!-- [x] 表示选中 --> - [ ] Bug修复 - [x] 新特性 - [ ] 性能优化 - [x] 文档更新 - [ ] 其他,请描述: ## AI/Agent生成声明 <!-- [x] 表示选中 --> - [x] AI辅助编写 See merge request: cann/ops-nn!12499 | 16 天前 | |
fix(masked_scatter): remediate error reporting Co-authored-by: Qianwen Ye<yeqianwen2@huawei.com> # message auto-generated for no-merge-commit merge: !13816 merge codex/fix-masked-scatter-error-codes into master fix(masked_scatter): remediate error reporting Created-by: Annyqw Commit-by: Qianwen Ye Merged-by: cann-robot Description: ## 描述 参考 #13732 的错误码分层和首错唯一性原则,整改 masked_scatter 的 ACLNN、A2/A3 tiling 与 InferShape 错误上报。 - 必选输入缺失使用语义错误码,shape/dtype 关系使用对应正式宏。 - A2/A3 tiling 合法输入下的平台、tiling data、workspace 等内部失败统一由根因层上报 EZ1008。 - InferShape 上下文缺失统一上报 EZ1014。 - 下层已上报的 Contiguous、Cast、Reshape、Cumsum、L0/launcher 失败仅记录 OP_LOGE_WITHOUT_REPORT 并透传原状态,避免重复 EZ9999。 - 删除不可达 executor 空指针检查和包装层动态 CHECK_RET 上报。 本 PR 不修改 arch35,也不包含测试代码改动。 ## 关联的Issue 无。 ## 测试 在 CANN 9.3 Docker 环境验证: - bash build.sh -u --opapi --ops=masked_scatter --ut_mode=fast -j8:30/30 通过。 - bash build.sh -u --ophost --ops=masked_scatter --ut_mode=fast -j8:原有用例 4/4 通过。 ## 文档更新 无。 ## 类型标签 - [x] Bug修复 - [ ] 新特性 - [ ] 性能优化 - [ ] 文档更新 - [ ] 其他,请描述: ## AI/Agent生成声明 - [x] AI辅助编写 See merge request: cann/ops-nn!13816 | 15 天前 | |
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 天前 | |
docs: update English translations for markdown files Co-authored-by: jenny_xiang<jenny.xiang@huawei.com> # message auto-generated for no-merge-commit merge: !13600 merge docs/update-english-translations into master docs: update English translations for markdown files Created-by: jenny_xiang Commit-by: jenny_xiang Merged-by: cann-robot Description: ## 描述 英文译稿合入后的增量同步与链接更新,共39个文件(37改2删): 1. 增量翻译(8篇):hard_shrink、squared_relu、foreach_lerp_list、foreach_maximum_scalar_list、quant_matmul_reduce_sum、deep_norm、apply_centered_rms_prop、torch_extension,同步最新中文源文档的变更内容。 2. 删除2篇译稿:rotate_quant/tests/st/arch35、grouped(上游已删除对应中文源文件)。 3. 链接改写(31篇):指向本仓已有英文版文档的链接统一改写为 _en 版本(含CONTRIBUTING/SECURITY/README、24处贡献流程链接、fast_kernel_launch_example等),并将残留的中文链接文字(贡献流程/贡献指南/安全声明等)译为英文。 ## 关联的Issue 无 ## 测试 文档类变更,无需算子测试。已通过:全量1135篇译稿链接有效性校验(全部指向master已有文件);残留中文/全角标点扫描(仅存数学公式内源文件原文、无英文版目标文档的中文锚点等允许例外)。 ## 文档更新 更新37个英文译稿文件、删除2个(对应源文件已上游删除),不修改任何中文源文件。 ## 类型标签 - [ ] Bug修复 - [ ] 新特性 - [ ] 性能优化 - [x] 文档更新 - [ ] 其他,请描述: See merge request: cann/ops-nn!13600 | 17 天前 | |
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 天前 | |
fix(index): 整改 MedianDim 和 GatherElementsV2 错误码上报 Co-authored-by: huang-jz<huangjunzhe2@h-partners.com> # message auto-generated for no-merge-commit merge: !12822 merge fix/index-error-code-remediation-20261027 into master fix(index): 整改 MedianDim 和 GatherElementsV2 错误码上报 Created-by: huang-jz Commit-by: huang-jz Merged-by: cann-robot Description: ## 描述 整改 index/median_dim、index/gather_elements_v2 的错误上报:在参数、SoC 能力和 tiling 根因层使用已注册的正式语义码,包装层仅补日志并保留下层错误,保持公开接口和 errno 兼容。 - MedianDim 和 GatherElementsV2 在输出分配失败后立即返回,避免继续 launch;launcher 日志包含原始返回值。 - GatherElementsV2 透传 MergeAxis 失败,在首次使用前以有符号值校验 dtype 大小,修复空 tiling context 的提前解引用。 - 在现有 UT 中补充 6 个负向场景,同时断言返回、正式码、诊断字段和单次首错;补齐 UT 的真实链接依赖,不改变生产符号可见性。 - nnopbase 的强制加载依赖限定在包含 GatherElementsV2 测试的 host 构建;使用 linker push/pop 保存链接状态,不影响无关算子的 host UT。 ## 关联的Issue 关联 Issue:#7421 ## 测试 验证环境:aarch64、GNU C++ 11.4、CANN 9.1 容器,opbase 使用仓库固定提交 0c5e25790f67e2c6f60c1df36d74d28f0e08ecfc。 - MedianDim 现有 API 9 例运行通过,另 Median API 2/2、Median 形状推导 6/6 通过。 - 运行 Gather host 13/13、Median 形状推导 6/6;ELF 确认 Gather 加载 nnopbase。 ## 文档更新 整改报告、冻结台账、实际命令、测试 XML、编译/include 证据保存为独立任务产物;未修改仓库文档。 ## 类型标签 - [x] Bug修复 - [ ] 新特性 - [ ] 性能优化 - [ ] 文档更新 - [ ] 其他,请描述: ## AI/Agent生成声明 - [x] AI辅助编写 See merge request: cann/ops-nn!12822 | 25 天前 | |
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 天前 | |
NonZero算子添加相关拦截校验 Co-authored-by: surezz<zhangyuwei31@huawei.com> # message auto-generated for no-merge-commit merge: !13616 merge aclnnNonZero into master NonZero算子添加相关拦截校验 Created-by: surezz Commit-by: surezz Merged-by: cann-robot Description: ## 描述 <!--在这里详细描述你的改动,包括改动的原因和所采取的方法。--> aclnnNonZero算子修改aclnn代码校验输出维度为2维,同步修改文档 ## 关联的Issue <!-- 如果这个PR是为了解决特定的Issue,请在这里提供Issue链接。例如:关联Issue #000--> https://gitcode.com/cann/ops-nn/issues/8343 ## 测试 <!--描述进行了哪些测试来验证你的改动。--> david冒烟、二级冒烟、异常用例测试 ## 文档更新 <!--如果这个PR包含文档的更新,请在这里指出。例如:更新了README.md文件。--> 更新aclnnNonZero.md ## 类型标签 <!-- [x] 表示选中 --> - [x] Bug修复 - [ ] 新特性 - [ ] 性能优化 - [ ] 文档更新 - [ ] 其他,请描述: ## AI/Agent生成声明 <!-- [x] 表示选中 --> - [ ] AI辅助编写 See merge request: cann/ops-nn!13616 | 13 天前 | |
fix(golden): MSE aclnn 精度口径、GNSQ bf16、NonZeroWithValue e2e-tf 适配 (issue #5/#3/#197) Co-authored-by: tianyu52<tianyu52@huawei.com> # message auto-generated for no-merge-commit merge: !13492 merge fix/golden-issue3-5 into master fix(golden): MSE aclnn 精度口径、GNSQ bf16、NonZeroWithValue e2e-tf 适配 (issue #5/#3/#197) Created-by: zl_hw Commit-by: tianyu52 Merged-by: cann-robot Description: ## 描述 修复三个 issue 的 golden/验证载体缺陷,仅改三个 tests/assets/golden.py,不动任何 kernel/op_api/其他算子 golden。 ### issue #5:aclnnMseLossOut(changwei_liuguoyue#5) 1. **golden 未注册 aclnnMseLossOut** → CI 三方腿 cannot resolve api + golden UNSUPPORTED 必挂。新增 aclnn_mse_loss_out_golden 与 MseLossOutAclnnSpec 注册:mean/sum 归约 0 轴(broadcast 去首维),none 逐元素,空张量全 1.0(NPU 空路径实测),inf 按 IEEE 自然传播。 2. **残余 3 精度例(L0_003/012/049)** 定位(--dump 逐位归属 + plog 实锤):NPU 链路 = MSELossV2(内部 fp32,输出落输入 dtype)→ ReduceMean/Sum(fp32 累加,输出落输入 dtype)→ Cast 到 out dtype,中间张量均为输入 dtype。我们 spec 两处与之不符: - **三方腿**原自行抬 fp32 跳过中间舍入 → 误差(~2⁻²⁴)比 NPU(~2⁻⁹)虚低十几个数量级,cross_check 三比值必判 NPU。改为 **torch 原生接口原生 dtype**(F.mse_loss(none)→mean/sum(dim=0)),混合 dtype 按 torch.result_type 对齐 NPU PromoteType,与 NPU 链路逐算子同构。 - **golden 末位未落声明 out dtype**:fp16 out 放不下 ~1e6 时 golden 有限、NPU ±inf,Path A 非有限位必误判(L0_003 75% 元素 inf)。golden 末位照声明 out dtype(kwargs tensor_dtypes 末位,Promote 不抬纯输出位)落取值网格+溢出语义,容器回到交付档(fp16 容器会在 np.promote_types(fp16, bfloat16) 抛 TypeError)。 golden 计算档 = TTK 交付档(Promote: bf16/fp16→fp32、fp32→fp64),不自行抬精度(规范:真值不做任何 cast);归约为 reduce-0 轴(N 小),交付档累加误差远低于被测链路输入 dtype 舍入,仲裁能力无损。 ### issue #3:aclnnGroupNormSiluQuant(changwei_jiaoyiming#3) - 报障 INPUT_GEN_FAILURE(customize_inputs 返 10 项 vs ttk 契约 4 输入槽)已由 master f834b6174 修复(待同步发布仓);本提交修 master 仍存的第二个 bug:tolerance(quant/stat_rel_err)不触发 Promote,torch bf16 原样送达 golden,_golden_impl 的 np.asarray 对 torch bf16 抛 TypeError → bf16 aclnn 用例全 GOLDEN_FAILURE(L0_002)。AclnnGroupNormSiluQuantSpec.golden 入口统一经 _to_np(bf16 按 uint16 按位 view 到 ml_dtypes),kernel/geir 通路本就 numpy 不受影响。 ### issue #197:NonZeroWithValue tf 通路(changwei#197) 交付件声明 tf 通路 ✅,但只有 aclgrphParseTensorFlow 跑预生成 .pb 的解析级验证(产物未归档),golden 无 tf 形态、无 e2e 用例。本提交补上 ttk e2e-tf 的 golden 载体: - 新增 NonZeroWithValueTfSpec(**仅子类**,父类 kernel/GEIR spec 零改动):golden 壳收 e2e 装配的 x/transpose/output_type,复用 _golden_impl;有效前缀 binary_equal 判据与 compare 钩子整份继承。 - 新增 _NzvTfCompose tf 三方腿:stock TF 拼接(tf.where 坐标 + tf.gather_nd 值 + count + 静态 max-size 补零布局),bool 用 tf.zeros_like 构造零常量。 - __spec__ 增注册三个等价 API 名:tf.raw_ops.NonZeroWithValue 与 Adapter 对外的 npu_device/npu_bridge estimator.npu_aicore_ops.nonzerowithvalue。 - customize_inputs 在子类按 e2e 装配签名独立覆盖,不改父类契约。 - 迁移验证脚本关键注释:GE/atc 默认 force_fp16 会在本算子前后插 fp32→fp16→fp32 Cast,<6e-8 的 fp32 非零值被吞/大值溢出,必须显式 must_keep_origin_dtype;本算子无内置 keep-dtype 豁免。 ## 关联的Issue - https://gitcode.com/wangyueting/changwei_liuguoyue/issues/5 - https://gitcode.com/wangyueting/changwei_jiaoyiming/issues/3 - https://gitcode.com/wangyueting/changwei/issues/197 ## 测试 - issue #5(Ascend950DT,ttk aclnn 三方 cross_check):全量 L0 **49/49 PASS**(含报障例与 3 个原精度失败例,三比值 mare/mere/rmse ≈ 1.0) - issue #3:报障 L0_002/L0_003 PASS;全量 L0 44 例 42 PASS(2 例空 N=0 系用例越资料约束 N>0,算子正确拒绝 161002,应归 l2_exception,与本修复无关) - issue #197(tf-ttk 容器:TF 2.6.5 + npu_device 2.6.5 + CANN 9.3 + ttk 5a73376):e2e-tf **5/5 PASS**(f32/小值边界/f16/i32/全零);f32/f16/小值边界/全零四例的 tf 三方腿真实执行且三输出与 golden **逐位全等**;int32 例因 ttk 整数输出强制 binary_equal 不采三方数据,以 --golden-mode XPU 补跑 PASS 并同输入逐位复核 golden==tf 腿。NPU 侧走 npu_device 上板执行。 - 回归:修复仅新增 aclnnMseLossOut spec 段、_to_np 边界转换与 NonZeroWithValueTfSpec 子类;已有 aclnnMseLoss/mse_loss_v2/kernel/GEIR 等 golden 逐字未动。NonZeroWithValue kernel/GEIR 的 spec 解析复核仍命中父类(golden/compare/torch 三方腿不变)。 ## 文档更新 无(仅测试资产 golden.py) ## 类型标签 - [x] Bug修复 - [x] 新特性 - [ ] 性能优化 - [ ] 文档更新 - [ ] 其他,请描述: ## AI/Agent生成声明 - [x] AI辅助编写 See merge request: cann/ops-nn!13492 | 17 天前 | |
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 天前 | |
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 天前 | |
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 天前 | |
修复 ops-nn 接口文档扫描问题(错别字/标点/多字,117处) Co-authored-by: liujing987913<liujing407@h-partners.com> # message auto-generated for no-merge-commit merge: !13766 merge master into master 修复 ops-nn 接口文档扫描问题(错别字/标点/多字,117处) Created-by: liujing987913 Commit-by: liujing987913 Merged-by: cann-robot Description: ## 描述 <!--在这里详细描述你的改动,包括改动的原因和所采取的方法。--> - 背景:大模型扫描发现 ops-nn 接口文档问题 117 处 - 修改分类:多字/中文多字 70、同音字 17、形近字 3、引号未成对 4、代码括号 2、术语拼写 2、字母顺序 2(文本替换 100 处);MD 结构 17 处(tab→空格 6、列表空行 9、连续空行 2) - 涉及文件:docs 目录下 85 个接口文档 md - 验证:git diff 确认为纯文本替换(100 处)+ 纯结构操作(17 处),无代码内容误改;已人工复核 ## 关联的Issue <!-- 如果这个PR是为了解决特定的Issue,请在这里提供Issue链接。例如:关联Issue [#8245](https://gitcode.com/cann/ops-nn/issues/8245) ## 测试 <!--描述进行了哪些测试来验证你的改动。--> ## 文档更新 <!--如果这个PR包含文档的更新,请在这里指出。例如:更新了README.md文件。--> 本次 PR 更新了 ops-nn 接口文档 85 个 md 文件,修正错别字/标点/多字 100 处、MD 结构 17 处,详见 diff。 ## 类型标签 <!-- [x] 表示选中 --> - [ ] Bug修复 - [ ] 新特性 - [ ] 性能优化 - [x] 文档更新 - [ ] 其他,请描述: ## AI/Agent生成声明 <!-- [x] 表示选中 --> - [ ] AI辅助编写 See merge request: cann/ops-nn!13766 | 15 天前 | |
修复 ops-nn 接口文档扫描问题(错别字/标点/多字,117处) Co-authored-by: liujing987913<liujing407@h-partners.com> # message auto-generated for no-merge-commit merge: !13766 merge master into master 修复 ops-nn 接口文档扫描问题(错别字/标点/多字,117处) Created-by: liujing987913 Commit-by: liujing987913 Merged-by: cann-robot Description: ## 描述 <!--在这里详细描述你的改动,包括改动的原因和所采取的方法。--> - 背景:大模型扫描发现 ops-nn 接口文档问题 117 处 - 修改分类:多字/中文多字 70、同音字 17、形近字 3、引号未成对 4、代码括号 2、术语拼写 2、字母顺序 2(文本替换 100 处);MD 结构 17 处(tab→空格 6、列表空行 9、连续空行 2) - 涉及文件:docs 目录下 85 个接口文档 md - 验证:git diff 确认为纯文本替换(100 处)+ 纯结构操作(17 处),无代码内容误改;已人工复核 ## 关联的Issue <!-- 如果这个PR是为了解决特定的Issue,请在这里提供Issue链接。例如:关联Issue [#8245](https://gitcode.com/cann/ops-nn/issues/8245) ## 测试 <!--描述进行了哪些测试来验证你的改动。--> ## 文档更新 <!--如果这个PR包含文档的更新,请在这里指出。例如:更新了README.md文件。--> 本次 PR 更新了 ops-nn 接口文档 85 个 md 文件,修正错别字/标点/多字 100 处、MD 结构 17 处,详见 diff。 ## 类型标签 <!-- [x] 表示选中 --> - [ ] Bug修复 - [ ] 新特性 - [ ] 性能优化 - [x] 文档更新 - [ ] 其他,请描述: ## AI/Agent生成声明 <!-- [x] 表示选中 --> - [ ] AI辅助编写 See merge request: cann/ops-nn!13766 | 15 天前 | |
feat: ReverseSequence、ForeachAddScalarList、ForeachDivScalar算子新增ascend960平台支持 Co-authored-by: t00850857<tanxin44@huawei.com> # message auto-generated for no-merge-commit merge: !11911 merge master-v121 into master feat: ReverseSequence、ForeachAddScalarList、ForeachDivScalar算子新增ascend960平台支持 Created-by: tan_xin Commit-by: tan_xin;t00850857 Merged-by: cann-robot Description: ## 描述 为 ReverseSequence、ForeachAddScalarList、ForeachDivScalar 三个算子新增 ascend960dt 平台支持,使其可在 ascend960dt(NpuArch DAV_9201)芯片上完成编译与调用。主要改动: ### 算子定义与编译配置 - 三个算子 op_host 定义文件通过 AICore().AddConfig("ascend960dt", ...) 注册平台配置 - reverse_sequence CMakeLists.txt 的 SUPPORT_COMPUTE_UNIT 增加 "ascend960dt",tiling 目录沿用 arch35 - 新增 ascend960dt 平台二进制编译配置(3 个 *_binary.json)与 reverse_sequence_simplified_key.ini(simplified_key_mode=0);ForeachAddScalarList 覆盖 x∈{float16,float32,int32,bfloat16} 4 种组合,ForeachDivScalar 覆盖 x∈{float16,float32,bfloat16} 3 种组合 - ascendc_config.json 中 ReverseSequence、ForeachAddScalarList、ForeachDivScalar 的 compute_units 增加 ascend960dt ## 关联的Issue - #6669 ## 测试 - 新增 ascend960 平台 binary 编译配置,需在 ascend960 平台完成编译与 ReverseSequence、ForeachAddScalarList、ForeachDivScalar 算子功能验证 ## 文档更新 - 无 ## 类型标签 - [ ] Bug修复 - [x] 新特性 - [ ] 性能优化 - [ ] 文档更新 - [ ] 其他,请描述: ## AI/Agent生成声明 - [ ] AI辅助编写 See merge request: cann/ops-nn!11911 | 1 个月前 | |
docs: update English translations for markdown files Co-authored-by: jenny_xiang<jenny.xiang@huawei.com> # message auto-generated for no-merge-commit merge: !13600 merge docs/update-english-translations into master docs: update English translations for markdown files Created-by: jenny_xiang Commit-by: jenny_xiang Merged-by: cann-robot Description: ## 描述 英文译稿合入后的增量同步与链接更新,共39个文件(37改2删): 1. 增量翻译(8篇):hard_shrink、squared_relu、foreach_lerp_list、foreach_maximum_scalar_list、quant_matmul_reduce_sum、deep_norm、apply_centered_rms_prop、torch_extension,同步最新中文源文档的变更内容。 2. 删除2篇译稿:rotate_quant/tests/st/arch35、grouped(上游已删除对应中文源文件)。 3. 链接改写(31篇):指向本仓已有英文版文档的链接统一改写为 _en 版本(含CONTRIBUTING/SECURITY/README、24处贡献流程链接、fast_kernel_launch_example等),并将残留的中文链接文字(贡献流程/贡献指南/安全声明等)译为英文。 ## 关联的Issue 无 ## 测试 文档类变更,无需算子测试。已通过:全量1135篇译稿链接有效性校验(全部指向master已有文件);残留中文/全角标点扫描(仅存数学公式内源文件原文、无英文版目标文档的中文锚点等允许例外)。 ## 文档更新 更新37个英文译稿文件、删除2个(对应源文件已上游删除),不修改任何中文源文件。 ## 类型标签 - [ ] Bug修复 - [ ] 新特性 - [ ] 性能优化 - [x] 文档更新 - [ ] 其他,请描述: See merge request: cann/ops-nn!13600 | 17 天前 | |
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 天前 | |
feat(index): inplace_add适配ascend960dt Co-authored-by: SimonZzz<zhouquan79@huawei.com> # message auto-generated for no-merge-commit merge: !13476 merge fixIA into master feat(index): inplace_add适配ascend960dt Created-by: SimonZzz Commit-by: SimonZzz Merged-by: cann-robot Description: ## 描述 <!--在这里详细描述你的改动,包括改动的原因和所采取的方法。--> 为 InplaceAdd 使能 ascend960dt(dav_9201):补齐构建配置与二进制清单,并在 scatter_add 图优化的 inplace_add fusion pass 中放行 960dt 原生实现。不改算子 kernel 与算法。 **问题现象:** ascend960dt 上 InplaceAdd 无原生二进制;且 scatter_add 图优化中的 inplace_add fusion pass 仅在 950/350(kNativeInplaceAddSoc/ops::IsDav3510Arch())保留原节点,960dt 会被改写为 legacy 融合实现,无法派发原生算子。 **修复方式:** - 构建侧(对照 f362ac7ef"960_maxpoolv3grad适配"的既有模式): - index/inplace_add/CMakeLists.txt:SUPPORT_COMPUTE_UNIT 增加 ascend960dt(tiling 目录同用 arch35); - index/inplace_add/op_kernel/CMakeLists.txt:COMPUTE_UNITS 增加 ascend960dt; - op_host/inplace_add_def.cpp:AddConfig("ascend960dt", aicoreConfig); - 新增 op_host/config/ascend960dt/inplace_add_binary.json:13 条 dtype 条目,与 ascend950 版一一对应(bf16/complex32/complex64/float16/float32/int8-64/uint8-64,仅 bin_filename 后缀 _950→_960dt)。 - 图优化侧:index/scatter_add/op_graph/fusion_pass/inplace_add_fusion_pass.cpp 的 IsSupportSoc()(:113)追加 curSoc == "Ascend960DT",写法与 f362ac7ef 在 sorted_sparse_segment_mean_grad / gather / max_pool_grad 三个 fusion pass 的 960dt 适配一致(short_soc_version 字符串比较 + 既有 IsDav3510Arch());同步更新函数头注释。960dt 由此与 950 一样跳过 legacy 融合、保留原节点并派发原生 InplaceAdd 二进制。 ## 关联的Issue <!-- 如果这个PR是为了解决特定的Issue,请在这里提供Issue链接。例如:关联Issue #000--> https://gitcode.com/cann/ops-nn/issues/6872 ## 测试 <!--描述进行了哪些测试来验证你的改动。--> 已完成的验证: - inplace_add_binary.json JSON 合法性、13/13 dtype 条目与 ascend950 版一一对应(仅 soc 后缀差异)✓ - 融合判断写法与 f362ac7ef 先例逐字对齐(short_soc_version 为 "Ascend960DT",与 GetCurrentSocVersion() 返回源一致)✓ - scripts/kernel/binary_config/ascendc_config.json 核对:plain InplaceAdd 原本即不在清单内(ascend950/350 亦未列),无需同步 ✓ - pre-commit 全过(clang-format / codespell / OAT)✓ - 待真机回归:ascend960dt 上原生 InplaceAdd 二进制派发、scatter_add 图模式端到端(确认图未被改写为 legacy 融合)、13 个 dtype 冒烟 ## 文档更新 <!--如果这个PR包含文档的更新,请在这里指出。例如:更新了README.md文件。--> 不涉及 ## 类型标签 <!-- [x] 表示选中 --> - [ ] Bug修复 - [x] 新特性 - [ ] 性能优化 - [ ] 文档更新 - [ ] 其他,请描述: ## AI/Agent生成声明 <!-- [x] 表示选中 --> - [x] AI辅助编写 See merge request: cann/ops-nn!13476 | 12 天前 | |
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 天前 | |
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 天前 | |
修复 ops-nn 接口文档扫描问题(错别字/标点/多字,117处) Co-authored-by: liujing987913<liujing407@h-partners.com> # message auto-generated for no-merge-commit merge: !13766 merge master into master 修复 ops-nn 接口文档扫描问题(错别字/标点/多字,117处) Created-by: liujing987913 Commit-by: liujing987913 Merged-by: cann-robot Description: ## 描述 <!--在这里详细描述你的改动,包括改动的原因和所采取的方法。--> - 背景:大模型扫描发现 ops-nn 接口文档问题 117 处 - 修改分类:多字/中文多字 70、同音字 17、形近字 3、引号未成对 4、代码括号 2、术语拼写 2、字母顺序 2(文本替换 100 处);MD 结构 17 处(tab→空格 6、列表空行 9、连续空行 2) - 涉及文件:docs 目录下 85 个接口文档 md - 验证:git diff 确认为纯文本替换(100 处)+ 纯结构操作(17 处),无代码内容误改;已人工复核 ## 关联的Issue <!-- 如果这个PR是为了解决特定的Issue,请在这里提供Issue链接。例如:关联Issue [#8245](https://gitcode.com/cann/ops-nn/issues/8245) ## 测试 <!--描述进行了哪些测试来验证你的改动。--> ## 文档更新 <!--如果这个PR包含文档的更新,请在这里指出。例如:更新了README.md文件。--> 本次 PR 更新了 ops-nn 接口文档 85 个 md 文件,修正错别字/标点/多字 100 处、MD 结构 17 处,详见 diff。 ## 类型标签 <!-- [x] 表示选中 --> - [ ] Bug修复 - [ ] 新特性 - [ ] 性能优化 - [x] 文档更新 - [ ] 其他,请描述: ## AI/Agent生成声明 <!-- [x] 表示选中 --> - [ ] AI辅助编写 See merge request: cann/ops-nn!13766 | 15 天前 | |
修复 ops-nn 接口文档扫描问题(错别字/标点/多字,117处) Co-authored-by: liujing987913<liujing407@h-partners.com> # message auto-generated for no-merge-commit merge: !13766 merge master into master 修复 ops-nn 接口文档扫描问题(错别字/标点/多字,117处) Created-by: liujing987913 Commit-by: liujing987913 Merged-by: cann-robot Description: ## 描述 <!--在这里详细描述你的改动,包括改动的原因和所采取的方法。--> - 背景:大模型扫描发现 ops-nn 接口文档问题 117 处 - 修改分类:多字/中文多字 70、同音字 17、形近字 3、引号未成对 4、代码括号 2、术语拼写 2、字母顺序 2(文本替换 100 处);MD 结构 17 处(tab→空格 6、列表空行 9、连续空行 2) - 涉及文件:docs 目录下 85 个接口文档 md - 验证:git diff 确认为纯文本替换(100 处)+ 纯结构操作(17 处),无代码内容误改;已人工复核 ## 关联的Issue <!-- 如果这个PR是为了解决特定的Issue,请在这里提供Issue链接。例如:关联Issue [#8245](https://gitcode.com/cann/ops-nn/issues/8245) ## 测试 <!--描述进行了哪些测试来验证你的改动。--> ## 文档更新 <!--如果这个PR包含文档的更新,请在这里指出。例如:更新了README.md文件。--> 本次 PR 更新了 ops-nn 接口文档 85 个 md 文件,修正错别字/标点/多字 100 处、MD 结构 17 处,详见 diff。 ## 类型标签 <!-- [x] 表示选中 --> - [ ] Bug修复 - [ ] 新特性 - [ ] 性能优化 - [x] 文档更新 - [ ] 其他,请描述: ## AI/Agent生成声明 <!-- [x] 表示选中 --> - [ ] AI辅助编写 See merge request: cann/ops-nn!13766 | 15 天前 | |
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 天前 | |
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 天前 | |
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 天前 | |
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 天前 | |
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 天前 | |
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 天前 | |
add rt2.0 inferDtype and inferShape Co-authored-by: z30075199<zhangxin660@h-partners.com> # message auto-generated for no-merge-commit merge: !12794 merge infershape_dtype into master add rt2.0 inferDtype and inferShape Created-by: z30075199 Commit-by: z30075199 Merged-by: cann-robot Description: ## 描述 <!--在这里详细描述你的改动,包括改动的原因和所采取的方法。--> 17个算子的inferdatatype和infershape补充rt2.0注册和信息库实现 AvgPool AvgPoolV2 GatherNd GatherV2 IndexFillD ReverseV2 Scatter ScatterNd ScatterNdAdd UnsortedSegmentMax UnsortedSegmentMin UnsortedSegmentProd ScatterSub SegmentSum SparseSegmentMean SparseToDense MaskedScatter ## 关联的Issue <!-- 如果这个PR是为了解决特定的Issue,请在这里提供Issue链接。例如:关联Issue #000--> https://gitcode.com/cann/ops-nn/issues/7588 ## 测试 <!--描述进行了哪些测试来验证你的改动。--> geir通路验证ok ## 文档更新 <!--如果这个PR包含文档的更新,请在这里指出。例如:更新了README.md文件。--> ## 类型标签 <!-- [x] 表示选中 --> - [ ] Bug修复 - [x] 新特性 - [ ] 性能优化 - [ ] 文档更新 - [ ] 其他,请描述: ## AI/Agent生成声明 <!-- [x] 表示选中 --> - [x] AI辅助编写 See merge request: cann/ops-nn!12794 | 23 天前 | |
refactor: 清理10个算子arch35路径上不必要的16M系统workspace预留 Co-authored-by: klein8793<zhangli24@huawei.com> # message auto-generated for no-merge-commit merge: !12965 merge dev_zl_2026_1028 into master refactor: 清理10个算子arch35路径上不必要的16M系统workspace预留 Created-by: klein8793 Commit-by: klein8793 Merged-by: cann-robot Description: ## 描述 清理 AvgPool、AvgPoolV2、BucketizeV2、GatherV2、ReverseV2、GatherND、Scatter、ScatterNdMax、ScatterNdMin、SparseToDense 共 10 个算子在 arch35 路径 tiling 中硬编码预留的 16M 系统 workspace。 ### 改动原因 这些算子的 kernel 所有模板均不读写 workspace(不调用 GetUserWorkspace / SetSysWorkspace,也不把 workspace 指针作为数据缓冲区使用),但 tiling 侧仍无条件预留 16M 系统 workspace,导致每次调用无效申请/释放 16M Device 内存。 ### 改动方法 - tiling 侧:GetWorkspaceSize 中 workspace 申报置 0,删除硬编码 16M 常量(SYS_WORKSPACE_SIZE / ASCENDC_WORKSPACE / WS_SYS_SIZE)及 GetLibApiWorkSpaceSize 调用 - kernel 侧:成对删除 workspace == nullptr 判空守卫、SetSysWorkspace、GetUserWorkspace 及模板 Init 中未使用的 workspace 形参,kernel 入口 ABI 签名 (..., GM_ADDR workspace, GM_ADDR tiling) 保持不变 - AvgPoolV2 复用 AvgPool 的 tiling 模板,ScatterNdMax / ScatterNdMin 共用 scatter_nd_common 公共 tiling,均在覆盖范围内 ## 关联的Issue - #7650 ## 测试 obp冒烟、david冒烟已通过 ## 文档更新 不涉及 ## 类型标签 - [ ] Bug修复 - [ ] 新特性 - [x] 性能优化 - [ ] 文档更新 - [ ] 其他,请描述: ## AI/Agent生成声明 - [x] AI辅助编写 See merge request: cann/ops-nn!12965 | 24 天前 | |
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 天前 | |
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 天前 | |
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 天前 | |
test(scatter_nd_update): 移除使用全局符号覆盖的回写用例 Co-authored-by: yourealize<chenzhanxi1@huawei.com> # message auto-generated for no-merge-commit merge: !13858 merge codex/remove-scatter-nd-update-writeback-ut into master test(scatter_nd_update): 移除使用全局符号覆盖的回写用例 Created-by: yourealize Commit-by: yourealize Merged-by: cann-robot Description: ## 描述 ScatterNdUpdate 的回写 UT 在共享 API UT 进程中定义了与生产函数同名的 l0op::Contiguous、l0op::ViewCopy 外部符号,使符号替换范围超出当前测试用例,并依赖 dlsym 转发其他用例的调用。 删除 index/scatter_nd_update/tests/ut/op_api/test_aclnn_scatter_nd_update_writeback.cpp,移除其中 48 组参数化回写用例。保留原有两个测试文件中的 32 个用例及已合入的生产接口回写修复。公共 ${CMAKE_DL_LIBS} 仍供 GEMM UT 使用,保持不变。 ## 关联的Issue 关联 Issue:https://gitcode.com/cann/ops-nn/issues/6747 本次为已合入 PR https://gitcode.com/cann/ops-nn/pull/12073 的测试清理。 ## 测试 - 通过仓库实际 CMake 用例收集函数检查:被删除文件已退出收集集合,原有两个测试文件及其中 32 个用例继续保留。 - git diff --check 通过。 - 已执行 pre-commit;本次仅删除文件,各 hook 均因无适用文件而跳过。 - 本次未重新运行 UT 或设备测试。 ## 文档更新 无文档更新。 ## 类型标签 - [ ] Bug修复 - [ ] 新特性 - [ ] 性能优化 - [ ] 文档更新 - [x] 其他,请描述:测试清理,移除使用全局同名符号覆盖的回写 UT。 ## AI/Agent生成声明 - [x] AI辅助编写 See merge request: cann/ops-nn!13858 | 15 天前 | |
lp_norm_update和scatter_non_aliasing_add算子质量加固 Co-authored-by: ly_cann_coder<liyao152@huawei.com> # message auto-generated for no-merge-commit merge: !13541 merge dev_1103 into master lp_norm_update和scatter_non_aliasing_add算子质量加固 Created-by: ly_cann_coder Commit-by: ly_cann_coder Merged-by: cann-robot Description: ## 描述 <!--在这里详细描述你的改动,包括改动的原因和所采取的方法。--> lp_norm_update和scatter_non_aliasing_add算子质量加固 ## 关联的Issue <!-- 如果这个PR是为了解决特定的Issue,请在这里提供Issue链接。例如:关联Issue #000--> https://gitcode.com/cann/ops-nn/issues/8395 ## 测试 <!--描述进行了哪些测试来验证你的改动。--> ## 文档更新 <!--如果这个PR包含文档的更新,请在这里指出。例如:更新了README.md文件。--> ## 类型标签 <!-- [x] 表示选中 --> - [ ] Bug修复 - [x] 新特性 - [ ] 性能优化 - [ ] 文档更新 - [ ] 其他,请描述: ## AI/Agent生成声明 <!-- [x] 表示选中 --> - [ ] AI辅助编写 See merge request: cann/ops-nn!13541 | 13 天前 | |
dvlite soc adaptive Co-authored-by: oah28<wujiahao37@huawei.com> # message auto-generated for no-merge-commit merge: !12923 merge dvlite into master dvlite soc adaptive Created-by: oah28 Commit-by: oah28 Merged-by: cann-robot Description: ## 描述 <!--在这里详细描述你的改动,包括改动的原因和所采取的方法。--> dvlite(Ascend350)SOC 适配:为 33 个算子启用 ascend350 计算单元支持。 Ascend350 与 Ascend950 同为 DAV_3510 架构(regbase),共用 arch35 tiling 与 kernel 源码, 本次按仓内既有 ascend350 适配模式批量扩展: 1. **算子注册**(32 个 *_def.cpp):新增 AICore().AddConfig("ascend350", config), 复用 ascend950 同配置对象(含 apply_adam_w_quant 回归框架默认 opFile 名,与 kernel 入口 apply_adam_w_quant 一致)。 2. **构建配置**:各算子 op_host/op_kernel CMakeLists 的 SUPPORT_COMPUTE_UNIT / COMPUTE_UNIT(S) 增加 "ascend350",TILING_DIR 复用 arch35。 3. **静态二进制**:新增 19 个 op_host/config/ascend350/*_binary.json(与 ascend950 版 逐字段一致)及 2 个 ascend350/*_simplified_key.ini(adam_apply_one_assign、 fake_quant_with_min_max_args_gradient)。 4. **op_api 平台判断适配**(8 个文件):将 GetSocVersion() 硬编码 switch/if 统一改为 GetCurNpuArch() 判断,消除新增 SOC 的遗漏点: - foreach_abs/asin/neg/sign/tanh:DAV_2201 || IsRegbase(curArch) - softshrink_backward:DAV_1001 || DAV_2002 || DAV_3002 → 910 dtype 列表 - ada_layer_norm_backward:DAV_2201 || IsRegbase(curArch) 选择 grad 计算路径 - index_check:!= DAV_2201 && !IsRegbase(curArch) 决定是否跳过检查 5. **全局 kernel 编译配置**:ascendc_config.json 为 ForeachAsin/AddcdivList/SubScalarInplace/ Tanh/Exp/Abs/Sign/Neg/MaximumScalar/LambUpdateWithLrV2/ScatterMin 11 个条目补充 ascend350 compute_units 及对应 compile_options。 涉及算子(33): FastGeluV2、HardSigmoid、SoftShrinkGrad、NPUClearFloatStatus、IndexCheck、ScatterMin、 ForeachAbs/AddcdivList/Asin/Exp/MaximumScalar/Neg/Sign/SubScalarInplace/Tanh(9)、 SigmoidCrossEntropyWithLogitsGrad、SigmoidFocalLoss、AdaLayerNormGrad、 BN3DTrainingReduceGrad、BNTrainingUpdateGrad、INTrainingUpdateV2、L2NormalizeGrad、 AdamApplyOneAssign、ApplyAdamV2、ApplyAdamWQuant、ApplyProximalGradientDescent、 FusedMulApplyKerasMomentum、InplaceApplyFtrl、LambUpdateWithLrV2、SGD、 SparseApplyAdagradV2、Dequantize、FakeQuantWithMinMaxArgsGradient ## 关联的Issue <!-- 如果这个PR是为了解决特定的Issue,请在这里提供Issue链接。例如:关联Issue #000--> Issue [#7724](https://gitcode.com/cann/ops-nn/issues/7724) ## 测试 <!--描述进行了哪些测试来验证你的改动。--> 冒烟通过,测试结果与950一致 ## 文档更新 <!--如果这个PR包含文档的更新,请在这里指出。例如:更新了README.md文件。--> ## 类型标签 <!-- [x] 表示选中 --> - [ ] Bug修复 - [x] 新特性 - [ ] 性能优化 - [ ] 文档更新 - [ ] 其他,请描述: ## AI/Agent生成声明 <!-- [x] 表示选中 --> - [ ] AI辅助编写 See merge request: cann/ops-nn!12923 | 22 天前 | |
add rt2.0 inferDtype and inferShape Co-authored-by: z30075199<zhangxin660@h-partners.com> # message auto-generated for no-merge-commit merge: !12794 merge infershape_dtype into master add rt2.0 inferDtype and inferShape Created-by: z30075199 Commit-by: z30075199 Merged-by: cann-robot Description: ## 描述 <!--在这里详细描述你的改动,包括改动的原因和所采取的方法。--> 17个算子的inferdatatype和infershape补充rt2.0注册和信息库实现 AvgPool AvgPoolV2 GatherNd GatherV2 IndexFillD ReverseV2 Scatter ScatterNd ScatterNdAdd UnsortedSegmentMax UnsortedSegmentMin UnsortedSegmentProd ScatterSub SegmentSum SparseSegmentMean SparseToDense MaskedScatter ## 关联的Issue <!-- 如果这个PR是为了解决特定的Issue,请在这里提供Issue链接。例如:关联Issue #000--> https://gitcode.com/cann/ops-nn/issues/7588 ## 测试 <!--描述进行了哪些测试来验证你的改动。--> geir通路验证ok ## 文档更新 <!--如果这个PR包含文档的更新,请在这里指出。例如:更新了README.md文件。--> ## 类型标签 <!-- [x] 表示选中 --> - [ ] Bug修复 - [x] 新特性 - [ ] 性能优化 - [ ] 文档更新 - [ ] 其他,请描述: ## AI/Agent生成声明 <!-- [x] 表示选中 --> - [x] AI辅助编写 See merge request: cann/ops-nn!12794 | 23 天前 | |
docs: update English translations for markdown files Co-authored-by: jenny_xiang<jenny.xiang@huawei.com> # message auto-generated for no-merge-commit merge: !13600 merge docs/update-english-translations into master docs: update English translations for markdown files Created-by: jenny_xiang Commit-by: jenny_xiang Merged-by: cann-robot Description: ## 描述 英文译稿合入后的增量同步与链接更新,共39个文件(37改2删): 1. 增量翻译(8篇):hard_shrink、squared_relu、foreach_lerp_list、foreach_maximum_scalar_list、quant_matmul_reduce_sum、deep_norm、apply_centered_rms_prop、torch_extension,同步最新中文源文档的变更内容。 2. 删除2篇译稿:rotate_quant/tests/st/arch35、grouped(上游已删除对应中文源文件)。 3. 链接改写(31篇):指向本仓已有英文版文档的链接统一改写为 _en 版本(含CONTRIBUTING/SECURITY/README、24处贡献流程链接、fast_kernel_launch_example等),并将残留的中文链接文字(贡献流程/贡献指南/安全声明等)译为英文。 ## 关联的Issue 无 ## 测试 文档类变更,无需算子测试。已通过:全量1135篇译稿链接有效性校验(全部指向master已有文件);残留中文/全角标点扫描(仅存数学公式内源文件原文、无英文版目标文档的中文锚点等允许例外)。 ## 文档更新 更新37个英文译稿文件、删除2个(对应源文件已上游删除),不修改任何中文源文件。 ## 类型标签 - [ ] Bug修复 - [ ] 新特性 - [ ] 性能优化 - [x] 文档更新 - [ ] 其他,请描述: See merge request: cann/ops-nn!13600 | 17 天前 | |
sparse_apply_adagrad_v2, sigmoid_focal_loss算子加固 Co-authored-by: z30075199<zhangxin660@h-partners.com> # message auto-generated for no-merge-commit merge: !13253 merge long_tail_nn_modify into master sparse_apply_adagrad_v2, sigmoid_focal_loss算子加固 Created-by: z30075199 Commit-by: z30075199 Merged-by: cann-robot Description: ## 描述 <!--在这里详细描述你的改动,包括改动的原因和所采取的方法。--> soft_shrink_grad golden优化; segment_sum二进制修复; sigmoid_focal_loss tiling校验优化; sparse_apply_adagrad_v2 新增int64数据类型 ## 关联的Issue <!-- 如果这个PR是为了解决特定的Issue,请在这里提供Issue链接。例如:关联Issue #000--> https://gitcode.com/cann/ops-nn/issues/8217 ## 测试 <!--描述进行了哪些测试来验证你的改动。--> st用例和冒烟通过 ## 文档更新 <!--如果这个PR包含文档的更新,请在这里指出。例如:更新了README.md文件。--> ## 类型标签 <!-- [x] 表示选中 --> - [x] Bug修复 - [ ] 新特性 - [ ] 性能优化 - [ ] 文档更新 - [ ] 其他,请描述: ## AI/Agent生成声明 <!-- [x] 表示选中 --> - [x] AI辅助编写 See merge request: cann/ops-nn!13253 | 16 天前 | |
Feature: 为 index 和 pooling 类算子新增 Ascend350 平台支持 Co-authored-by: klein8793<zhangli24@huawei.com> # message auto-generated for no-merge-commit merge: !9754 merge dev_zl_2026_0902 into master Feature: 为 index 和 pooling 类算子新增 Ascend350 平台支持 Created-by: klein8793 Commit-by: klein8793 Merged-by: cann-robot Description: ## 描述 为 index 和 pooling 类算子新增 Ascend350 平台支持。具体变更包括: 1. **新增 Ascend350 平台配置文件**(42 个 JSON):为每个算子新增 op_host/config/ascend350/ 下的二进制配置 JSON 2. **注册 Ascend350 平台**:在各算子 _def.cpp 中添加 his->AICore().AddConfig(ascend350, aicoreConfig) 3. **更新编译配置**:修改各算子 CMakeLists.txt,添加 Ascend350 编译选项;更新 scendc_config.json 中对应算子的 compute_units 列表,将 [ascend950] 扩展为 [ascend950, ascend350] 4. **更新 Fusion Pass 平台判断**:在 bucketize_v2_fusion_pass、inplace_add_fusion_pass、gather_fusion_pass、tensor_scatter_add_fusion_pass、sorted_sparse_segment_mean_grad_fusion_pass 中将 Ascend350 加入平台白名单 涉及算子(35+): - index: bucketize_v2, concat_offset, gather_elements, gather_nd, gather_v2, index_fill, index_fill_d, index_put_v2, inplace_index_add, inplace_index_fill, linear_index_v2, masked_scatter, repeat_interleave, reverse_sequence, reverse_v2, scatter, scatter_add, scatter_add_with_sorted, scatter_elements, scatter_elements_v2, scatter_nd, scatter_nd_add, scatter_nd_max, scatter_nd_min, scatter_nd_update, scatter_sub, scatter_update, segment_sum, sorted_sparse_segment_mean_grad, sparse_segment_mean, sparse_to_dense, unsorted_segment_max, unsorted_segment_min - pooling: avg_pool, avg_pool_v2 - 公共库: scatter_nd_common, unsorted_segment_common, sort_lib ## 关联的Issue - #5651 ## 测试 obp冒烟、david冒烟已通过 ## 文档更新 NA ## 类型标签 - [ ] Bug修复 - [x] 新特性 - [ ] 性能优化 - [ ] 文档更新 - [ ] 其他,请描述: ## AI/Agent生成声明 - [ ] AI辅助编写 See merge request: cann/ops-nn!9754 | 2 个月前 | |
960_maxpoolv3grad适配 Co-authored-by: duxinlei<duxinlei@h-partners.com> # message auto-generated for no-merge-commit merge: !12496 merge 960_maxpoolv3grad into master 960_maxpoolv3grad适配 Created-by: duxinlei Commit-by: duxinlei Merged-by: cann-robot Description: ## 描述 <!--在这里详细描述你的改动,包括改动的原因和所采取的方法。--> 960_maxpoolv3grad适配;追加sparseSegmentMeanGrad的fe通路960dt适配 ## 关联的Issue <!-- 如果这个PR是为了解决特定的Issue,请在这里提供Issue链接。例如:关联Issue #000--> 关联Issue [#7365](https://gitcode.com/cann/ops-nn/issues/7365) ## 测试 <!--描述进行了哪些测试来验证你的改动。--> 二级冒烟和david冒烟 用例通路自测 ## 文档更新 <!--如果这个PR包含文档的更新,请在这里指出。例如:更新了README.md文件。--> ## 类型标签 <!-- [x] 表示选中 --> - [ ] Bug修复 - [x] 新特性 - [ ] 性能优化 - [ ] 文档更新 - [ ] 其他,请描述: ## AI/Agent生成声明 <!-- [x] 表示选中 --> - [ ] AI辅助编写 See merge request: cann/ops-nn!12496 | 25 天前 | |
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 天前 | |
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 天前 | |
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 天前 | |
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 天前 | |
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 天前 | |
sparse_slice适配infershapeV2 Co-authored-by: TH<taohai2@huawei.com> # message auto-generated for no-merge-commit merge: !13034 merge sparseSliceTest into master sparse_slice适配infershapeV2 Created-by: TH_HW Commit-by: TH Merged-by: cann-robot Description: ## 描述 SparseSlice 算子在 GE 通路(graph 模式)下执行失败。 **根因**:SparseSlice 有 3 个输出—— y_indices(0)、y_values(1)、y_shape(2)。其中 y_indices 与 y_values 的第一维等于运行时实际命中的点数,InferShapeForSparseSlice 中将其置为 UNKNOWN_DIM,即编译期无法确定 shape。但原注册链上未调用 .OutputShapeDependOnCompute(...),导致 GE 框架不知道这两个输出的 shape 需待 kernel 计算完成后才能确定,在图构建 / 输出内存分配阶段直接失败。 **修复方法**:在 IMPL_OP_INFERSHAPE(SparseSlice) 注册链上追加 .OutputShapeDependOnCompute({0, 1}),向框架声明 output0 / output1 的输出 shape 依赖计算结果,框架据此在运行时基于真实 shape 管理输出内存。 ## 关联的Issue 关联 Issue #7915 ## 测试 - GE 通路下 sparse_slice 算子可正常构建并执行 - 该算子既有单元测试全部通过 ## 文档更新 无文档更新。 ## 类型标签 - [x] Bug修复 - [ ] 新特性 - [ ] 性能优化 - [ ] 文档更新 - [ ] 其他,请描述: ## AI/Agent生成声明 - [ ] AI辅助编写 See merge request: cann/ops-nn!13034 | 20 天前 | |
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 天前 | |
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 天前 | |
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 天前 | |
docs: update English translations for markdown files Co-authored-by: jenny_xiang<jenny.xiang@huawei.com> # message auto-generated for no-merge-commit merge: !13600 merge docs/update-english-translations into master docs: update English translations for markdown files Created-by: jenny_xiang Commit-by: jenny_xiang Merged-by: cann-robot Description: ## 描述 英文译稿合入后的增量同步与链接更新,共39个文件(37改2删): 1. 增量翻译(8篇):hard_shrink、squared_relu、foreach_lerp_list、foreach_maximum_scalar_list、quant_matmul_reduce_sum、deep_norm、apply_centered_rms_prop、torch_extension,同步最新中文源文档的变更内容。 2. 删除2篇译稿:rotate_quant/tests/st/arch35、grouped(上游已删除对应中文源文件)。 3. 链接改写(31篇):指向本仓已有英文版文档的链接统一改写为 _en 版本(含CONTRIBUTING/SECURITY/README、24处贡献流程链接、fast_kernel_launch_example等),并将残留的中文链接文字(贡献流程/贡献指南/安全声明等)译为英文。 ## 关联的Issue 无 ## 测试 文档类变更,无需算子测试。已通过:全量1135篇译稿链接有效性校验(全部指向master已有文件);残留中文/全角标点扫描(仅存数学公式内源文件原文、无英文版目标文档的中文锚点等允许例外)。 ## 文档更新 更新37个英文译稿文件、删除2个(对应源文件已上游删除),不修改任何中文源文件。 ## 类型标签 - [ ] Bug修复 - [ ] 新特性 - [ ] 性能优化 - [x] 文档更新 - [ ] 其他,请描述: See merge request: cann/ops-nn!13600 | 17 天前 | |
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 天前 | |
修复 ops-nn 接口文档扫描问题(错别字/标点/多字,117处) Co-authored-by: liujing987913<liujing407@h-partners.com> # message auto-generated for no-merge-commit merge: !13766 merge master into master 修复 ops-nn 接口文档扫描问题(错别字/标点/多字,117处) Created-by: liujing987913 Commit-by: liujing987913 Merged-by: cann-robot Description: ## 描述 <!--在这里详细描述你的改动,包括改动的原因和所采取的方法。--> - 背景:大模型扫描发现 ops-nn 接口文档问题 117 处 - 修改分类:多字/中文多字 70、同音字 17、形近字 3、引号未成对 4、代码括号 2、术语拼写 2、字母顺序 2(文本替换 100 处);MD 结构 17 处(tab→空格 6、列表空行 9、连续空行 2) - 涉及文件:docs 目录下 85 个接口文档 md - 验证:git diff 确认为纯文本替换(100 处)+ 纯结构操作(17 处),无代码内容误改;已人工复核 ## 关联的Issue <!-- 如果这个PR是为了解决特定的Issue,请在这里提供Issue链接。例如:关联Issue [#8245](https://gitcode.com/cann/ops-nn/issues/8245) ## 测试 <!--描述进行了哪些测试来验证你的改动。--> ## 文档更新 <!--如果这个PR包含文档的更新,请在这里指出。例如:更新了README.md文件。--> 本次 PR 更新了 ops-nn 接口文档 85 个 md 文件,修正错别字/标点/多字 100 处、MD 结构 17 处,详见 diff。 ## 类型标签 <!-- [x] 表示选中 --> - [ ] Bug修复 - [ ] 新特性 - [ ] 性能优化 - [x] 文档更新 - [ ] 其他,请描述: ## AI/Agent生成声明 <!-- [x] 表示选中 --> - [ ] AI辅助编写 See merge request: cann/ops-nn!13766 | 15 天前 | |
UniqueSortFusionPass add supported npu archs Co-authored-by: jerry_gd<jerry.luo@huawei.com> # message auto-generated for no-merge-commit merge: !13845 merge unique_sort_fusion_pass into master UniqueSortFusionPass add supported npu archs Created-by: jerry_gd Commit-by: jerry_gd Merged-by: cann-robot Description: ## 描述 <!--在这里详细描述你的改动,包括改动的原因和所采取的方法。--> UniqueSortFusionPass融合规则支持Ascend960DT/Ascend960PR ## 关联的Issue <!-- 如果这个PR是为了解决特定的Issue,请在这里提供Issue链接。例如:关联Issue #000--> https://gitcode.com/cann/ops-nn/issues/8373 ## 测试 <!--描述进行了哪些测试来验证你的改动。--> - 二级冒烟通过 ## 文档更新 <!--如果这个PR包含文档的更新,请在这里指出。例如:更新了README.md文件。--> 不涉及 ## 类型标签 <!-- [x] 表示选中 --> - [ ] Bug修复 - [x] 新特性 - [ ] 性能优化 - [ ] 文档更新 - [ ] 其他,请描述: ## AI/Agent生成声明 <!-- [x] 表示选中 --> - [ ] AI辅助编写 See merge request: cann/ops-nn!13845 | 13 天前 | |
docs(unique_consecutive): 依据 CannBot 验证报告整改非 P1 文档问题(upload-20261023013718) Co-authored-by: huang-qiang<huangqiang3@huawei.com> # message auto-generated for no-merge-commit merge: !13016 merge agent/issue-175 into master docs(unique_consecutive): 依据 CannBot 验证报告整改非 P1 文档问题(upload-20261023013718) Created-by: caorenlei Commit-by: huang-qiang Merged-by: cann-robot Description: ## 整改说明 - **验证报告编号**:upload-20261023013718-unique-consecutive-f73342c5(CannBot 算子验证平台,静态检查 + 用例生成 + 上板执行) - **报告基线 commit**:ddbbfc9973857d6160c95ddb40c96d32e9eb2921;**整改基线 commit**:4081356df(master 快照 c1053d85 后续,报告引用行号在该基线逐条核对有效) - **关联 Issue**:#8081([Bug-Report|缺陷反馈]: unique_consecutive README 模板不规范、约束说明缺失、aclnn 文档输出 shape 与错误场景声明不全,说明本 PR 合入背景) - **整改范围**:仅 P2 及以下非 golden 文档类问题。全部 P1(静态 10 条 / 终版 8 条)、golden 相关(GOLDEN.01/05/13、FR-007)、DOC.05/1(master 已修复)不在本 PR 范围;依据人工复核指令回退了测试资产、config 配置与产品支持矩阵相关改动(回退说明见下)。 ## 整改项清单(保留项) ### README.md(FR-010 / FR-011;DOC.01/2、DOC.02/1-3、DOC.03/1、DOC.06/1、SCOPE.03/2;观察项 obs[0]/[1]/[2]) - 参数表按源码定义顺序重排(def.cpp:63-85:x → y → idx → count → 属性),与同族 unique_with_counts_and_sorting README 编排一致 - 4 个属性角色「输入属性」→「属性」,补真实默认值(return_idx=false、return_counts=false、axis=1000、out_idx=INT64,与 def.cpp:82-85 一致),数据格式 ND →「-」 - out_idx 行类型列「INT32」→「INT32、INT64」,描述统一「仅支持INT32、INT64,默认值为INT64」,消除描述与类型列互斥 - 约束说明由「无」补齐:展平模式(axis/dim 仅 1000)、return_idx 仅 false、idx/count 仅 INT32/INT64 且类型一致、确定性实现 - 调用说明表头「调用样例」→「样例代码」、调用方式「aclnn调用」→「aclnn API」;补 GE图模式行并链接 op_graph/unique_consecutive_proto.h ### docs/aclnnUniqueConsecutive.md(FR-016;obs[4]/obs[6]) - 三个输出张量「维度(shape)」声明按展平模式实际输出与缓冲区分配口径改写(消除「valueOut 与 self 保持一致」与展平实际输出 y 一维长度 G 的矛盾,对齐 kernel CopyOutShape 动态回写语义) - 错误场景表补两行 161002:self 维度数大于 8、dim 越界(对齐 aclnn_unique_consecutive.cpp:64/67-68 实际校验) - 调用示例 inverseShape {4,2}→{8}、dim 0→1000,与展平模式及 950 段约束自洽 ### op_graph/unique_consecutive_proto.h(GEIR.11/1;仓库核对补充项 2) - 注释属性名 return_count 修正为注册名 return_counts - @attention 过期陈述「runs on the Ascend AI CPU, which delivers poor performance」修正为 AICore 实现口径及展平模式/return_idx=false 支持范围 ### 交付源文件行尾换行 - op_api/aclnn_unique_consecutive.h ## 回退说明(依据人工复核指令,commit 20d7155a6) 以下改动超出本次「非 P1 文档整改」边界,已全部回退到基线 4081356df 状态: - examples/test_aclnn_unique_consecutive.cpp(测试资产:样例失败路径 RELEASE 出口等改动整体回退,DEMO.04/1 修复随之撤销) - tests/CMakeLists.txt、tests/ut/CMakeLists.txt、tests/ut/op_host/CMakeLists.txt(测试构建文件:许可头替换与尾换行回退,DEMO.05/2 修复随之撤销) - tests/ut/op_host/test_unique_consecutive_infershape.cpp(UT 资产:尾换行回退) - op_host/config/ascend950/unique_consecutive_binary.json(op_host/config 下 soc 配置:尾换行回退) - docs/aclnnUniqueConsecutive.md 产品支持表 Atlas A3/A2 恢复基线「支持」口径,并恢复「A2、A3 及训练系列产品 dim 维度值超 2 亿性能约束」条目(支持产品矩阵不得增删/升降,不得删条目规避问题;产品支持范围与验证口径以仓内既有基线为准) ## 范围外事项(不在本 PR,如实记录) - 全部 P1:CODE.03/06/09/10/14/18、SAFE.01/02、COMPAT.03/04(静态)与 FR-001~006/FR-008/FR-014/FR-017(终版) - golden 相关:GOLDEN.01/05/13、FR-007(golden 侧)、FR-019(golden 保真度),tests/assets 与 tests/st 零改动 - DOC.05/1:master 已修复(基线实测 docs:127/137/147 为 √) - 环境/框架开放项:FR-012(rank-0 编译 DFX TypeError)、FR-013/FR-015(l2_exception.csv 与 geir mapping.json 为平台工件不在本仓)、FR-020(cst+oom VEC_ERROR 归因未决)、FR-021(Large/ST 内存准入/TF 路由) - 注:docs 内嵌示例(dim=1000、inverseShape={8})与 examples 样例(回退后为 dim=0、inverseShape={4,2})因测试资产回退红线暂不一致,样例侧整改留待单独任务按仓库口径重新评估 ## 验证结论 - 整改 commit(ff2b30ac0 / 00adae6f2 / 01aeaf6a3)pre-commit 全钩子 Passed(trailing-whitespace / end-of-file-fixer / clang-format / codespell / oat-check),OAT 合规扫描 License Header Invalid = 0 - 回退 commit(20d7155a6)按人工指令将上述文件恢复至基线(含基线原有的缺行尾换行状态),与 end-of-file-fixer 钩子冲突故按指令跳过钩子执行,已在 commit message 说明 - golden 与测试资产(tests/assets、tests/st、UT/ST 用例)相对基线零改动(git diff 验证) - 回退后文档一致性复核 15/15 通过:产品支持矩阵与性能约束条目与基线一致,C 组文档整改(参数表/约束/调用说明/shape 口径/错误场景/示例/proto 注释)全部保留生效 - 上板复测:无 NPU/TTK 环境,如实标记「未验证」;未通过改 golden、放宽阈值、删除或禁用用例等方式达成任何验证结论 See merge request: cann/ops-nn!13016 | 17 天前 | |
ascend_dequant等9个算子适配960dt Co-authored-by: TH<taohai2@huawei.com> # message auto-generated for no-merge-commit merge: !12955 merge backBlue1 into master ascend_dequant等9个算子适配960dt Created-by: TH_HW Commit-by: TH Merged-by: cann-robot Description: ## 描述 为 **TopKTopPSampleV2、UniqueDim、AscendAntiQuant、AscendAntiQuantV2、AscendDequant、DynamicBlockMxQuant、GroupedDynamicBlockQuant、MxToBlockMxQuant、QuantMax** 共 9 个算子补齐 **Ascend 960DT(NpuArch / __NPU_ARCH__ 9201)** 平台支持。 Ascend 960DT 与 Ascend 950 共享 arch35 AICore 架构,可直接复用 950 的 kernel 代码、tiling 逻辑与二进制配置,因此本次适配不涉及计算逻辑改动,核心是在编译配置与算子注册中登记 960DT、复用 950 的 config 对象,并在 kernel 中把 950 已有的架构相关指令(3510)以 3510 || 9201 并列宏放开给 960DT。 主要改动如下: 1. **算子注册与编译配置** - SUPPORT_COMPUTE_UNIT / COMPUTE_UNITS 追加 "ascend960dt",SUPPORT_TILING_DIR 追加对应的 "arch35":ascend_anti_quant(含 op_kernel/CMakeLists.txt)、ascend_anti_quant_v2、ascend_dequant、dynamic_block_mx_quant、grouped_dynamic_block_quant、mx_to_block_mx_quant(含 op_kernel/CMakeLists.txt)、quant_max。 - 9 个算子的 *_def.cpp 均新增 AddConfig("ascend960dt", <950 的 config 对象>),与 ascend950 **复用同一个 config 对象**,继承相同的 dtype、format 与扩展配置: - top_k_top_p_sample_v2:复用 910b/910_93/950 共用的 aicConfig; - unique_dim、ascend_anti_quant、ascend_anti_quant_v2、dynamic_block_mx_quant、grouped_dynamic_block_quant、mx_to_block_mx_quant:复用各算子 950 的 aicConfig; - ascend_dequant、quant_max:分别复用 config_950、aicoreConfig950。 - 新增 960DT 二进制配置:top_k_top_p_sample_v2、unique_dim(含 unique_dim_simplified_key.ini)、ascend_anti_quant、ascend_anti_quant_v2、dynamic_block_mx_quant、grouped_dynamic_block_quant、mx_to_block_mx_quant 各新增 op_host/config/ascend960dt/*_binary.json,内容与 ascend950 下配置一致;ascend_dequant、quant_max 直接复用 950 配置,不需要新增 json。 - scripts/kernel/binary_config/ascendc_config.json:TopKTopPSampleV2、UniqueDim、AscendAntiQuantV2、GroupedDynamicBlockQuant、DynamicBlockMxQuant、QuantMax 六个条目的 compute_units 追加 ascend960dt;编译选项沿用 950 口径(TopKTopPSampleV2 补 --cce-simd-vf-fusion=true,UniqueDim/AscendAntiQuantV2 补 --cce-no-dcache-flush,其余无额外选项)。 2. **kernel 架构宏放开(3510 → 3510 || 9201)** - index/top_k_top_p_sample_v2/op_kernel/top_k_top_p_sample_v2.h:c_api/asc_simd.h 的 include 与 asc_dcci_entire_out() 调用对 9201 放开。 - quant/dynamic_block_mx_quant/op_kernel/arch35/dynamic_block_mx_quant_base.h、op_kernel/dynamic_block_mx_quant.cpp:FLOAT_OVERFLOW_MODE_CTRL 读取/置 0/恢复对 9201 放开。 - quant/grouped_dynamic_block_quant/op_kernel/arch35/grouped_dynamic_block_quant_large_block.h、..._small_block.h、op_kernel/grouped_dynamic_block_quant.cpp:同上。 - quant/mx_to_block_mx_quant/op_kernel/arch35/mx_to_block_mx_quant.h:SetCtrlSpr<FLOAT_OVERFLOW_MODE_CTRL> 对 9201 放开。 3. **op_api 平台判断** - quant/ascend_anti_quant_v2/op_host/op_api/aclnn_ascend_anti_quant.cpp:CheckShape 中 scale/offset 必须为 1 维的校验,由仅豁免 NpuArch::DAV_3510 扩展为同时豁免 NpuArch::DAV_9201,与 950 行为对齐。 - 其余 8 个算子的 op_api 不存在 SocVersion::ASCEND950 / NpuArch::DAV_3510 判断,IsRegbase()(common/inc/op_api/aclnn_util.h)的 NpuArch 集合已包含 DAV_9201,960DT 自动覆盖。 4. **测试与工程修正(同一提交内顺带收敛)** - index/top_k_top_p_sample_v2/tests/ut/op_host:tiling UT 的错误管理接口由 ErrorManager 迁移至 error_message::ErrMgrInit / GetErrMgrErrorMessage,并在 UT CMakeLists 中显式链接 opbase_util_objs,避免 EZ 错误码静态注册被优化掉导致负向用例失效。 - quant/ascend_dequant/tests:新增 tests/tests/ut/tests/ut/op_host CMake 链与 test_ascend_dequant_infershape.cpp(3 条 op_graph 原型用例:输入输出与默认属性、属性更新、输入输出 desc 更新)。 - quant/ascend_dequant、quant/quant_max、top_k_top_p_sample_v2 UT 的许可头统一为标准格式,并补齐文件末尾换行。 ## 关联的Issue 无。 ## 测试 - 通过 ascend960dt 编译与静态检查。 - 核对 960DT 与 950 运行时路径一致性:9 个算子均 AddConfig("ascend960dt", <950 config>) 复用同一 config 对象;kernel 侧仅在 __NPU_ARCH__ == 9201 时沿用 950 已启用的 dcci / 浮点溢出模式控制指令;IsRegbase() 已覆盖 DAV_9201。 - ascend_dequant 新增 op_graph 原型 UT、top_k_top_p_sample_v2 tiling UT 迁移后通过。 ## 文档更新 无。 ## 类型标签 <!-- [x] 表示选中 --> - [x] 新特性 - [ ] Bug修复 - [ ] 性能优化 - [ ] 文档更新 - [ ] 其他,请描述: ## AI/Agent生成声明 <!-- [x] 表示选中 --> - [x] AI辅助编写 See merge request: cann/ops-nn!12955 | 22 天前 | |
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 天前 | |
docs: update English translations for markdown files Co-authored-by: jenny_xiang<jenny.xiang@huawei.com> # message auto-generated for no-merge-commit merge: !13600 merge docs/update-english-translations into master docs: update English translations for markdown files Created-by: jenny_xiang Commit-by: jenny_xiang Merged-by: cann-robot Description: ## 描述 英文译稿合入后的增量同步与链接更新,共39个文件(37改2删): 1. 增量翻译(8篇):hard_shrink、squared_relu、foreach_lerp_list、foreach_maximum_scalar_list、quant_matmul_reduce_sum、deep_norm、apply_centered_rms_prop、torch_extension,同步最新中文源文档的变更内容。 2. 删除2篇译稿:rotate_quant/tests/st/arch35、grouped(上游已删除对应中文源文件)。 3. 链接改写(31篇):指向本仓已有英文版文档的链接统一改写为 _en 版本(含CONTRIBUTING/SECURITY/README、24处贡献流程链接、fast_kernel_launch_example等),并将残留的中文链接文字(贡献流程/贡献指南/安全声明等)译为英文。 ## 关联的Issue 无 ## 测试 文档类变更,无需算子测试。已通过:全量1135篇译稿链接有效性校验(全部指向master已有文件);残留中文/全角标点扫描(仅存数学公式内源文件原文、无英文版目标文档的中文锚点等允许例外)。 ## 文档更新 更新37个英文译稿文件、删除2个(对应源文件已上游删除),不修改任何中文源文件。 ## 类型标签 - [ ] Bug修复 - [ ] 新特性 - [ ] 性能优化 - [x] 文档更新 - [ ] 其他,请描述: See merge request: cann/ops-nn!13600 | 17 天前 | |
fix(index): UnsortedSegmentMax/Prod 算子 arch35 无用 workspace 置 0 Co-authored-by: zhangxiyan7<zhangxiyan7@huawei.com> # message auto-generated for no-merge-commit merge: !12479 merge fix_workspace into master fix(index): UnsortedSegmentMax/Prod 算子 arch35 无用 workspace 置 0 Created-by: zhangxiyan7 Commit-by: zhangxiyan7 Merged-by: cann-robot Description: ## 描述 UnsortedSegmentMax / UnsortedSegmentProd 在 arch35(DAV_3510)上每此调用都申报 16MB 的 sys workspace 预留,但其中多数 tiling 模板对应的 kernel 并不使用 workspace,属无效的 Device 内存申请/释放。本次按模板读写不使用到 workspace 置 0 的原则整改。 此外,补充UnsortedSegmentMax/UnsortedSegmentProd算子用例看护UT;canndev仓通过TILING_REG_FLAG宏隔离,开源算子仓补充InferDataType以满足A5下线rt1.0要求。 ## 关联的Issue https://gitcode.com/cann/ops-nn/issues/7382 ## 测试 对 max / prod 的各相关 tiling 模板跑功能用例,全部通过;冒烟通过。 ## 文档更新 <!--如果这个PR包含文档的更新,请在这里指出。例如:更新了README.md文件。--> ## 类型标签 <!-- [x] 表示选中 --> - [ ] Bug修复 - [ ] 新特性 - [x] 性能优化 - [ ] 文档更新 - [ ] 其他,请描述: ## AI/Agent生成声明 <!-- [x] 表示选中 --> - [ ] AI辅助编写 See merge request: cann/ops-nn!12479 | 26 天前 | |
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 天前 | |
Check num_segments null in UnsortedSegmentMin Infershape Co-authored-by: lihang_13123<lihang106@h-partners.com> # message auto-generated for no-merge-commit merge: !13761 merge scatter_add into master Check num_segments null in UnsortedSegmentMin Infershape Created-by: lihang_13123 Commit-by: lihang_13123 Merged-by: cann-robot Description: ## 描述 提前校验num_segments 为Null并规避,避免GetConstIntToShape校验打印ERROR日志 ## 关联的Issue <!-- 如果这个PR是为了解决特定的Issue,请在这里提供Issue链接。例如:关联Issue #000--> ## 测试 验证OK,冒烟OK ## 文档更新 <!--如果这个PR包含文档的更新,请在这里指出。例如:更新了README.md文件。--> ## 类型标签 <!-- [x] 表示选中 --> - [x] Bug修复 - [ ] 新特性 - [ ] 性能优化 - [ ] 文档更新 - [ ] 其他,请描述: ## AI/Agent生成声明 <!-- [x] 表示选中 --> - [ ] AI辅助编写 See merge request: cann/ops-nn!13761 | 15 天前 | |
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 天前 | |
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 天前 | |
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 天前 | |
License Change Split2 Co-authored-by: huohuo_wy<wangyan389@huawei.com> # message auto-generated for no-merge-commit merge: !371 merge spilit2License3 into master License Change Split2 Created-by: huohuo_wangyan Commit-by: huohuo_wy Merged-by: cann-robot Description: ## 描述 批量整改文件copyright注释 ## 关联的Issue https://gitcode.com/cann/ops-nn/issues/177 ## 测试 COPYRIGHT注释头按新要求刷新 ## 文档更新 <!--如果这个PR包含文档的更新,请在这里指出。例如:更新了README.md文件。--> ## 类型标签 <!-- [x] 表示选中 --> - [x] Bug修复 - [ ] 新特性 - [ ] 性能优化 - [ ] 文档更新 - [ ] 其他,请描述: See merge request: cann/ops-nn!371 | 11 个月前 |
| 文件 | 最后提交记录 | 最后更新时间 |
|---|---|---|
| 17 天前 | ||
| 15 天前 | ||
| 12 天前 | ||
| 18 天前 | ||
| 18 天前 | ||
| 15 天前 | ||
| 1 个月前 | ||
| 1 个月前 | ||
| 18 天前 | ||
| 18 天前 | ||
| 15 天前 | ||
| 15 天前 | ||
| 18 天前 | ||
| 15 天前 | ||
| 16 天前 | ||
| 18 天前 | ||
| 13 天前 | ||
| 16 天前 | ||
| 4 个月前 | ||
| 18 天前 | ||
| 18 天前 | ||
| 16 天前 | ||
| 12 天前 | ||
| 25 天前 | ||
| 18 天前 | ||
| 18 天前 | ||
| 18 天前 | ||
| 18 天前 | ||
| 12 天前 | ||
| 1 个月前 | ||
| 16 天前 | ||
| 18 天前 | ||
| 13 天前 | ||
| 18 天前 | ||
| 18 天前 | ||
| 18 天前 | ||
| 18 天前 | ||
| 18 天前 | ||
| 16 天前 | ||
| 15 天前 | ||
| 18 天前 | ||
| 17 天前 | ||
| 18 天前 | ||
| 25 天前 | ||
| 18 天前 | ||
| 13 天前 | ||
| 17 天前 | ||
| 18 天前 | ||
| 18 天前 | ||
| 18 天前 | ||
| 15 天前 | ||
| 15 天前 | ||
| 1 个月前 | ||
| 17 天前 | ||
| 18 天前 | ||
| 12 天前 | ||
| 18 天前 | ||
| 18 天前 | ||
| 15 天前 | ||
| 15 天前 | ||
| 18 天前 | ||
| 18 天前 | ||
| 18 天前 | ||
| 18 天前 | ||
| 18 天前 | ||
| 18 天前 | ||
| 23 天前 | ||
| 24 天前 | ||
| 18 天前 | ||
| 18 天前 | ||
| 18 天前 | ||
| 15 天前 | ||
| 13 天前 | ||
| 22 天前 | ||
| 23 天前 | ||
| 17 天前 | ||
| 16 天前 | ||
| 2 个月前 | ||
| 25 天前 | ||
| 18 天前 | ||
| 18 天前 | ||
| 18 天前 | ||
| 18 天前 | ||
| 18 天前 | ||
| 20 天前 | ||
| 18 天前 | ||
| 18 天前 | ||
| 18 天前 | ||
| 17 天前 | ||
| 18 天前 | ||
| 15 天前 | ||
| 13 天前 | ||
| 17 天前 | ||
| 22 天前 | ||
| 18 天前 | ||
| 17 天前 | ||
| 26 天前 | ||
| 18 天前 | ||
| 15 天前 | ||
| 18 天前 | ||
| 18 天前 | ||
| 18 天前 | ||
| 11 个月前 |