| Files | Last commit | Last update |
|---|---|---|
docs: add English translations for operator READMEs and repo docs Co-authored-by: jenny_xiang<jenny.xiang@huawei.com> # message auto-generated for no-merge-commit merge: !13351 merge docs/add-english-docs into master docs: add English translations for operator READMEs and repo docs Created-by: jenny_xiang Commit-by: jenny_xiang Merged-by: cann-robot Description: ## Description Add English translations for 652 markdown documents: - Repo-level guides: README_en.md, CONTRIBUTING_en.md, SECURITY_en.md, CHANGELOG_en.md, codearts_check_rule_config_en.md - Operator READMEs under activation/, conv/, control/, foreach/, hash/, index/, loss/, matmul/, norm/, optim/, pooling/, quant/, rnn/, vfusion/, etc. - API and design docs under docs/ (aclnn_*, ascendir_*, fusion pass docs) - examples/ and torch_extension/ guides Note: a few cross-reference links whose English targets are not published yet temporarily point to their Chinese counterparts to keep links valid; they will be switched back to the English docs in a follow-up PR after this one is merged. ## Related Issue N/A ## Test - Verified all 1,344 intra-repo markdown links in the added files resolve against master: 0 broken links, 0 missing targets. ## Documentation Update - This PR only adds English documentation files (*_en.md); no existing Chinese documents are modified. ## Type Labels - [ ] Bug fix - [ ] New feature - [ ] Performance optimization - [x] Documentation update - [ ] Other, please describe: ## AI/Agent-Generated Declaration - [x] AI-assisted authoring See merge request: cann/ops-nn!13351 | 18 days ago | |
docs: add English translations for operator READMEs and repo docs Co-authored-by: jenny_xiang<jenny.xiang@huawei.com> # message auto-generated for no-merge-commit merge: !13351 merge docs/add-english-docs into master docs: add English translations for operator READMEs and repo docs Created-by: jenny_xiang Commit-by: jenny_xiang Merged-by: cann-robot Description: ## Description Add English translations for 652 markdown documents: - Repo-level guides: README_en.md, CONTRIBUTING_en.md, SECURITY_en.md, CHANGELOG_en.md, codearts_check_rule_config_en.md - Operator READMEs under activation/, conv/, control/, foreach/, hash/, index/, loss/, matmul/, norm/, optim/, pooling/, quant/, rnn/, vfusion/, etc. - API and design docs under docs/ (aclnn_*, ascendir_*, fusion pass docs) - examples/ and torch_extension/ guides Note: a few cross-reference links whose English targets are not published yet temporarily point to their Chinese counterparts to keep links valid; they will be switched back to the English docs in a follow-up PR after this one is merged. ## Related Issue N/A ## Test - Verified all 1,344 intra-repo markdown links in the added files resolve against master: 0 broken links, 0 missing targets. ## Documentation Update - This PR only adds English documentation files (*_en.md); no existing Chinese documents are modified. ## Type Labels - [ ] Bug fix - [ ] New feature - [ ] Performance optimization - [x] Documentation update - [ ] Other, please describe: ## AI/Agent-Generated Declaration - [x] AI-assisted authoring See merge request: cann/ops-nn!13351 | 18 days ago | |
docs: add English translations for operator READMEs and repo docs Co-authored-by: jenny_xiang<jenny.xiang@huawei.com> # message auto-generated for no-merge-commit merge: !13351 merge docs/add-english-docs into master docs: add English translations for operator READMEs and repo docs Created-by: jenny_xiang Commit-by: jenny_xiang Merged-by: cann-robot Description: ## Description Add English translations for 652 markdown documents: - Repo-level guides: README_en.md, CONTRIBUTING_en.md, SECURITY_en.md, CHANGELOG_en.md, codearts_check_rule_config_en.md - Operator READMEs under activation/, conv/, control/, foreach/, hash/, index/, loss/, matmul/, norm/, optim/, pooling/, quant/, rnn/, vfusion/, etc. - API and design docs under docs/ (aclnn_*, ascendir_*, fusion pass docs) - examples/ and torch_extension/ guides Note: a few cross-reference links whose English targets are not published yet temporarily point to their Chinese counterparts to keep links valid; they will be switched back to the English docs in a follow-up PR after this one is merged. ## Related Issue N/A ## Test - Verified all 1,344 intra-repo markdown links in the added files resolve against master: 0 broken links, 0 missing targets. ## Documentation Update - This PR only adds English documentation files (*_en.md); no existing Chinese documents are modified. ## Type Labels - [ ] Bug fix - [ ] New feature - [ ] Performance optimization - [x] Documentation update - [ ] Other, please describe: ## AI/Agent-Generated Declaration - [x] AI-assisted authoring See merge request: cann/ops-nn!13351 | 18 days ago | |
修复 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 | 16 days ago | |
docs: add English translations for operator READMEs and repo docs Co-authored-by: jenny_xiang<jenny.xiang@huawei.com> # message auto-generated for no-merge-commit merge: !13351 merge docs/add-english-docs into master docs: add English translations for operator READMEs and repo docs Created-by: jenny_xiang Commit-by: jenny_xiang Merged-by: cann-robot Description: ## Description Add English translations for 652 markdown documents: - Repo-level guides: README_en.md, CONTRIBUTING_en.md, SECURITY_en.md, CHANGELOG_en.md, codearts_check_rule_config_en.md - Operator READMEs under activation/, conv/, control/, foreach/, hash/, index/, loss/, matmul/, norm/, optim/, pooling/, quant/, rnn/, vfusion/, etc. - API and design docs under docs/ (aclnn_*, ascendir_*, fusion pass docs) - examples/ and torch_extension/ guides Note: a few cross-reference links whose English targets are not published yet temporarily point to their Chinese counterparts to keep links valid; they will be switched back to the English docs in a follow-up PR after this one is merged. ## Related Issue N/A ## Test - Verified all 1,344 intra-repo markdown links in the added files resolve against master: 0 broken links, 0 missing targets. ## Documentation Update - This PR only adds English documentation files (*_en.md); no existing Chinese documents are modified. ## Type Labels - [ ] Bug fix - [ ] New feature - [ ] Performance optimization - [x] Documentation update - [ ] Other, please describe: ## AI/Agent-Generated Declaration - [x] AI-assisted authoring See merge request: cann/ops-nn!13351 | 18 days ago | |
modified md files Co-authored-by: duhuiping<duhuiping@h-partners.com> # message auto-generated for no-merge-commit merge: !13817 merge master into master modified md files Created-by: gitee-duhuiping Commit-by: duhuiping Merged-by: cann-robot Description: ## 描述 - Changed the product name. - Adjust the error code table and correct the value of rowspand. ## 关联的Issue none ## 测试 Only involves updating the MD document description, does not involve testing. ## 文档更新 md files ## 类型标签 <!-- [x] 表示选中 --> - [ ] Bug修复 - [ ] 新特性 - [ ] 性能优化 - [x] 文档更新 - [ ] 其他,请描述: See merge request: cann/ops-nn!13817 | 13 days ago | |
docs: add English translations for operator READMEs and repo docs Co-authored-by: jenny_xiang<jenny.xiang@huawei.com> # message auto-generated for no-merge-commit merge: !13351 merge docs/add-english-docs into master docs: add English translations for operator READMEs and repo docs Created-by: jenny_xiang Commit-by: jenny_xiang Merged-by: cann-robot Description: ## Description Add English translations for 652 markdown documents: - Repo-level guides: README_en.md, CONTRIBUTING_en.md, SECURITY_en.md, CHANGELOG_en.md, codearts_check_rule_config_en.md - Operator READMEs under activation/, conv/, control/, foreach/, hash/, index/, loss/, matmul/, norm/, optim/, pooling/, quant/, rnn/, vfusion/, etc. - API and design docs under docs/ (aclnn_*, ascendir_*, fusion pass docs) - examples/ and torch_extension/ guides Note: a few cross-reference links whose English targets are not published yet temporarily point to their Chinese counterparts to keep links valid; they will be switched back to the English docs in a follow-up PR after this one is merged. ## Related Issue N/A ## Test - Verified all 1,344 intra-repo markdown links in the added files resolve against master: 0 broken links, 0 missing targets. ## Documentation Update - This PR only adds English documentation files (*_en.md); no existing Chinese documents are modified. ## Type Labels - [ ] Bug fix - [ ] New feature - [ ] Performance optimization - [x] Documentation update - [ ] Other, please describe: ## AI/Agent-Generated Declaration - [x] AI-assisted authoring See merge request: cann/ops-nn!13351 | 18 days ago | |
docs: add English translations for operator READMEs and repo docs Co-authored-by: jenny_xiang<jenny.xiang@huawei.com> # message auto-generated for no-merge-commit merge: !13351 merge docs/add-english-docs into master docs: add English translations for operator READMEs and repo docs Created-by: jenny_xiang Commit-by: jenny_xiang Merged-by: cann-robot Description: ## Description Add English translations for 652 markdown documents: - Repo-level guides: README_en.md, CONTRIBUTING_en.md, SECURITY_en.md, CHANGELOG_en.md, codearts_check_rule_config_en.md - Operator READMEs under activation/, conv/, control/, foreach/, hash/, index/, loss/, matmul/, norm/, optim/, pooling/, quant/, rnn/, vfusion/, etc. - API and design docs under docs/ (aclnn_*, ascendir_*, fusion pass docs) - examples/ and torch_extension/ guides Note: a few cross-reference links whose English targets are not published yet temporarily point to their Chinese counterparts to keep links valid; they will be switched back to the English docs in a follow-up PR after this one is merged. ## Related Issue N/A ## Test - Verified all 1,344 intra-repo markdown links in the added files resolve against master: 0 broken links, 0 missing targets. ## Documentation Update - This PR only adds English documentation files (*_en.md); no existing Chinese documents are modified. ## Type Labels - [ ] Bug fix - [ ] New feature - [ ] Performance optimization - [x] Documentation update - [ ] Other, please describe: ## AI/Agent-Generated Declaration - [x] AI-assisted authoring See merge request: cann/ops-nn!13351 | 18 days ago | |
docs: add English translations for operator READMEs and repo docs Co-authored-by: jenny_xiang<jenny.xiang@huawei.com> # message auto-generated for no-merge-commit merge: !13351 merge docs/add-english-docs into master docs: add English translations for operator READMEs and repo docs Created-by: jenny_xiang Commit-by: jenny_xiang Merged-by: cann-robot Description: ## Description Add English translations for 652 markdown documents: - Repo-level guides: README_en.md, CONTRIBUTING_en.md, SECURITY_en.md, CHANGELOG_en.md, codearts_check_rule_config_en.md - Operator READMEs under activation/, conv/, control/, foreach/, hash/, index/, loss/, matmul/, norm/, optim/, pooling/, quant/, rnn/, vfusion/, etc. - API and design docs under docs/ (aclnn_*, ascendir_*, fusion pass docs) - examples/ and torch_extension/ guides Note: a few cross-reference links whose English targets are not published yet temporarily point to their Chinese counterparts to keep links valid; they will be switched back to the English docs in a follow-up PR after this one is merged. ## Related Issue N/A ## Test - Verified all 1,344 intra-repo markdown links in the added files resolve against master: 0 broken links, 0 missing targets. ## Documentation Update - This PR only adds English documentation files (*_en.md); no existing Chinese documents are modified. ## Type Labels - [ ] Bug fix - [ ] New feature - [ ] Performance optimization - [x] Documentation update - [ ] Other, please describe: ## AI/Agent-Generated Declaration - [x] AI-assisted authoring See merge request: cann/ops-nn!13351 | 18 days ago | |
fix: foreach_addcdiv_scalar_list input validation, tiling guards and test assets Co-authored-by: dengguojie<dengguojie@huawei.com> # message auto-generated for no-merge-commit merge: !13410 merge hardening/ForeachAddcdivScalarList into master fix: foreach_addcdiv_scalar_list input validation, tiling guards and test assets Created-by: dengguojie Commit-by: dengguojie Merged-by: cann-robot Description: ## 描述 对 foreach/foreach_addcdiv_scalar_list(TensorList 标量列表除加:y[i] = x1[i] + scalars[i]*(x2[i]/x3[i]))做系统性质量加固:输入校验补齐、tiling 守卫与溢出防护、SIMT 内核启动 API 规范化、文档对齐、三方参考实现与看护集入库,并按多轮评审意见收敛修复。 **主要修复要点**(完整逐项清单见关联 Issue #7957): - **aclnn 输入校验**:补 scalars dtype 域与元素个数校验(原零校验:错配时按错误位宽解释静默错值、个数不足时越界读)与非连续 Contiguous 规整;删除 ND-only 注册面下越权的 per-tensor format 拒绝;Kirin 平台路由放行(dtype 支持门控此前不含 Kirin,README 声明的支持不可达)。 - **arch35 tiling 守卫**:x2/x3 与 x1 的实例数/逐项 shape/dtype 一致性校验(原仅读 x1,违约构图直达 kernel 越界读);scalars dtype 域+与 x1[0] 一致;x1 列表内 dtype 均匀性;工作区指针判空;元素总数累加 int64 溢出双侧防护(负维/负 numel 原可致 needCoreNum 归零、kernel 静默空转成功);256 容量无符号域比较(原 int32 窄化在 [2^31,2^32) 失效致定长数组越界写);平台参数改 tiling 运行时查询;scalars(REQUIRED) 改 Required 系描述符接口(DYNAMIC 输入在场时 flat 下标错位)并恢复 numel==tensorNum 校验。 - **维度上限校验撤除**:arch35 tiling 逐成员 rank≤8 与 aclnn 侧 OP_CHECK_MAX_DIM 全部移除——维度约束由框架 shape 上限承载,与 foreach_round_off_number 等家族无算子侧 rank 门的形态对齐;算子侧保留元素总数 int64 双侧守卫;文档维度声明同步(参数表维度列改"-"、错误码表维度行删除)。 - **注册面清理**:移除基座 IO 模板 5 处 AutoContiguous 死配置(手写 aclnn 层已承载非连续转换,该标记无消费者;kirin 独立配置对象不动)。 - **SIMT 内核**:三个 __simt_vf__ 函数改 C 风格启动 API(asc_vf_call + threadIdx.x/blockDim.x)。 - **golden 参考实现**(tests/assets/golden.py):纯函数语义(商 x2/x3 统一 fp32 单独舍入、乘加和在收到精度域取真值、平局点定向舍入,对齐设备端 std::fma 求值序);bf16 输入经 uint16 位视图投递。 - **示例/UT/测试资产**:样例失败路径补资源释放;UT 比对脚本退出码语义与空列表前置断言(原 zip 截断恒过);看护集入库(kernel 87/aclnn 80 正向 CI 子集 + geir 59/torch 88 全量留证)并做序列化压缩(全等组广播单值写法+ori 冗余列删除,体积约 -40%,行数与逐行用例语义零变化);新增负向单测 19 例覆盖各校验分支(dtype/shape/实例数/容量/nullptr,gcov taken 证据在册),L2 异常拒绝行为由 HostUT 负向用例承载。 ## 关联的Issue Closes #7957 ## 测试 - **看护集回归(--compare mixed)**:kernel 87/87、aclnn 80/80、geir 59/59、torch 88/88 全 PASS;L2 异常行受控拒绝与真机 board 见证逐例对账(161001/161002/561103);rank-9 输入三路放开验证 PASS(撤检生效)。 - **board 真机**:a5-kernel 474 例、a5-aclnn 1053 例、a5-geir 59 例、a5-torch-route 97 例 SUCCESS;determinism 96 例×10 次重复输出 MD5 全一致;sanitizer(memcheck/initcheck/racecheck/synccheck)×59 例全部 No error detected。 - **单元测试**:op_host 19/19(正向 4+负向 13+infershape 2)+ op_api 18/18 PASSED;tiling 校验函数行覆盖 89.6%,各新增校验分支 gcov 双向 taken。 - **golden 一致性**:invariant 109/109(18 组)+ crosscheck 164 组/1546 门全 PASS;容差逐 dtype 对齐 spec(fp32 5e-4/fp16 1e-3/bf16 2^-7)。 - **服务端 CI 同参数预验**:--compare close --pc=16 下 kernel 87/87 + aclnn 80/80 全 PASS。 - **pre-commit/OAT**:变更集全钩子绿;OAT 单次全量扫描零发现(十类计数全 0)。 - **大用例口径**:全部用例按输入+输出字节量程序化预筛,均 ≤1GiB,零排除。 ## 文档更新 README.md 与 docs/aclnnForeachAddcdivScalarList{,_en}.md 与实现对齐:错误码表归正(561002→161002)并补 scalars 元素个数/列表长度不一致/空 Tensor 指针等 161002 行与列表超 256(561103)行;out 行"shape size 大于等于"改为"与 x1 对应位置一致";约束补 256 上限、空 TensorList 合法性、950/A3/A2 静态 shape 要求;非连续说明迁移至参数表"描述"列(框架转换机制措辞);原型 out 去 const;en 返回值表列头修正;dtype 列统一 FLOAT;产品 dtype 差异行按写作模板规范反向化(差异行仅保留反向描述,支持面由产品支持表与参数表承载,zh/en 镜像同步);新增 README_en.md 并与 zh 终态同构。 ## 测试资产入库 - tests/assets/golden.py:三方参考实现(kernel/aclnn/torch 三路 Spec,纯函数语义)。 - tests/st/arch35/:ttk_{kernel,aclnn,geir,torch}_foreach_addcdiv_scalar_list_st.csv(87/80/59/88 行,广播压缩序列化,逐行语义与设计基线等价)。 - 存量 tests/st/aclnnForeachAddcdivScalarList/(ATK 用例)保留原位,与 arch35 TTK 消费域不冲突。 ## 类型标签 - [x] Bug修复 - [ ] 新特性 - [ ] 性能优化 - [x] 文档更新 - [ ] 其他,请描述: ## AI/Agent生成声明 - [x] AI辅助编写 See merge request: cann/ops-nn!13410 | 12 days ago | |
docs: add English translations for operator READMEs and repo docs Co-authored-by: jenny_xiang<jenny.xiang@huawei.com> # message auto-generated for no-merge-commit merge: !13351 merge docs/add-english-docs into master docs: add English translations for operator READMEs and repo docs Created-by: jenny_xiang Commit-by: jenny_xiang Merged-by: cann-robot Description: ## Description Add English translations for 652 markdown documents: - Repo-level guides: README_en.md, CONTRIBUTING_en.md, SECURITY_en.md, CHANGELOG_en.md, codearts_check_rule_config_en.md - Operator READMEs under activation/, conv/, control/, foreach/, hash/, index/, loss/, matmul/, norm/, optim/, pooling/, quant/, rnn/, vfusion/, etc. - API and design docs under docs/ (aclnn_*, ascendir_*, fusion pass docs) - examples/ and torch_extension/ guides Note: a few cross-reference links whose English targets are not published yet temporarily point to their Chinese counterparts to keep links valid; they will be switched back to the English docs in a follow-up PR after this one is merged. ## Related Issue N/A ## Test - Verified all 1,344 intra-repo markdown links in the added files resolve against master: 0 broken links, 0 missing targets. ## Documentation Update - This PR only adds English documentation files (*_en.md); no existing Chinese documents are modified. ## Type Labels - [ ] Bug fix - [ ] New feature - [ ] Performance optimization - [x] Documentation update - [ ] Other, please describe: ## AI/Agent-Generated Declaration - [x] AI-assisted authoring See merge request: cann/ops-nn!13351 | 18 days ago | |
修复 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 | 16 days ago | |
docs: add English translations for operator READMEs and repo docs Co-authored-by: jenny_xiang<jenny.xiang@huawei.com> # message auto-generated for no-merge-commit merge: !13351 merge docs/add-english-docs into master docs: add English translations for operator READMEs and repo docs Created-by: jenny_xiang Commit-by: jenny_xiang Merged-by: cann-robot Description: ## Description Add English translations for 652 markdown documents: - Repo-level guides: README_en.md, CONTRIBUTING_en.md, SECURITY_en.md, CHANGELOG_en.md, codearts_check_rule_config_en.md - Operator READMEs under activation/, conv/, control/, foreach/, hash/, index/, loss/, matmul/, norm/, optim/, pooling/, quant/, rnn/, vfusion/, etc. - API and design docs under docs/ (aclnn_*, ascendir_*, fusion pass docs) - examples/ and torch_extension/ guides Note: a few cross-reference links whose English targets are not published yet temporarily point to their Chinese counterparts to keep links valid; they will be switched back to the English docs in a follow-up PR after this one is merged. ## Related Issue N/A ## Test - Verified all 1,344 intra-repo markdown links in the added files resolve against master: 0 broken links, 0 missing targets. ## Documentation Update - This PR only adds English documentation files (*_en.md); no existing Chinese documents are modified. ## Type Labels - [ ] Bug fix - [ ] New feature - [ ] Performance optimization - [x] Documentation update - [ ] Other, please describe: ## AI/Agent-Generated Declaration - [x] AI-assisted authoring See merge request: cann/ops-nn!13351 | 18 days ago | |
fix(foreach): 8个issue批量修复——错误码表对齐161002、out shape约束、列表长度错误码、资料修正、UT补齐 Co-authored-by: Tian_1122<tianjunhan@h-partners.com> # message auto-generated for no-merge-commit merge: !13610 merge fix/foreach-issue-batch-20261104 into master fix(foreach): 8个issue批量修复——错误码表对齐161002、out shape约束、列表长度错误码、资料修正、UT补齐 Created-by: Tian_1122 Commit-by: Tian_1122 Merged-by: cann-robot Description: ## 描述 <!--在这里详细描述你的改动,包括改动的原因和所采取的方法。--> 本 PR 针对 foreach 系列算子(aclnnForeachAddListV2、aclnnForeachAddScalar/V2、aclnnForeachAddcmulScalarV2)批量修复 8 个 issue,主要围绕错误码与参数校验规则对齐:统一列表长度不一致时的校验位置与错误码(161002),将 out 与 x1 的 shape 约束由“必须完全一致”改为“out 元素数不小于 x1”,补充 out 的最大维度检查,并同步修正接口文档中的数据类型说明、补齐 Host 与 Kernel 侧 UT。 ## 关联的Issue <!-- 如果这个PR是为了解决特定的Issue,请在这里提供Issue链接。例如:关联Issue #000--> [#7937](https://gitcode.com/cann/ops-nn/issues/7937) [#7929](https://gitcode.com/cann/ops-nn/issues/7929) [#7926](https://gitcode.com/cann/ops-nn/issues/7926) [#7925](https://gitcode.com/cann/ops-nn/issues/7925) [#7939](https://gitcode.com/cann/ops-nn/issues/7939) [#7967](https://gitcode.com/cann/ops-nn/issues/7967) [#7946](https://gitcode.com/cann/ops-nn/issues/7946) [#7945](https://gitcode.com/cann/ops-nn/issues/7945) ## 测试 <!--描述进行了哪些测试来验证你的改动。--> ## 文档更新 <!--如果这个PR包含文档的更新,请在这里指出。例如:更新了README.md文件。--> ## 类型标签 <!-- [x] 表示选中 --> - [x] Bug修复 - [ ] 新特性 - [ ] 性能优化 - [ ] 文档更新 - [ ] 其他,请描述: ## AI/Agent生成声明 <!-- [x] 表示选中 --> - [ ] AI辅助编写 See merge request: cann/ops-nn!13610 | 17 days ago | |
fix(foreach): 8个issue批量修复——错误码表对齐161002、out shape约束、列表长度错误码、资料修正、UT补齐 Co-authored-by: Tian_1122<tianjunhan@h-partners.com> # message auto-generated for no-merge-commit merge: !13610 merge fix/foreach-issue-batch-20261104 into master fix(foreach): 8个issue批量修复——错误码表对齐161002、out shape约束、列表长度错误码、资料修正、UT补齐 Created-by: Tian_1122 Commit-by: Tian_1122 Merged-by: cann-robot Description: ## 描述 <!--在这里详细描述你的改动,包括改动的原因和所采取的方法。--> 本 PR 针对 foreach 系列算子(aclnnForeachAddListV2、aclnnForeachAddScalar/V2、aclnnForeachAddcmulScalarV2)批量修复 8 个 issue,主要围绕错误码与参数校验规则对齐:统一列表长度不一致时的校验位置与错误码(161002),将 out 与 x1 的 shape 约束由“必须完全一致”改为“out 元素数不小于 x1”,补充 out 的最大维度检查,并同步修正接口文档中的数据类型说明、补齐 Host 与 Kernel 侧 UT。 ## 关联的Issue <!-- 如果这个PR是为了解决特定的Issue,请在这里提供Issue链接。例如:关联Issue #000--> [#7937](https://gitcode.com/cann/ops-nn/issues/7937) [#7929](https://gitcode.com/cann/ops-nn/issues/7929) [#7926](https://gitcode.com/cann/ops-nn/issues/7926) [#7925](https://gitcode.com/cann/ops-nn/issues/7925) [#7939](https://gitcode.com/cann/ops-nn/issues/7939) [#7967](https://gitcode.com/cann/ops-nn/issues/7967) [#7946](https://gitcode.com/cann/ops-nn/issues/7946) [#7945](https://gitcode.com/cann/ops-nn/issues/7945) ## 测试 <!--描述进行了哪些测试来验证你的改动。--> ## 文档更新 <!--如果这个PR包含文档的更新,请在这里指出。例如:更新了README.md文件。--> ## 类型标签 <!-- [x] 表示选中 --> - [x] Bug修复 - [ ] 新特性 - [ ] 性能优化 - [ ] 文档更新 - [ ] 其他,请描述: ## AI/Agent生成声明 <!-- [x] 表示选中 --> - [ ] AI辅助编写 See merge request: cann/ops-nn!13610 | 17 days ago | |
docs: add English translations for operator READMEs and repo docs Co-authored-by: jenny_xiang<jenny.xiang@huawei.com> # message auto-generated for no-merge-commit merge: !13351 merge docs/add-english-docs into master docs: add English translations for operator READMEs and repo docs Created-by: jenny_xiang Commit-by: jenny_xiang Merged-by: cann-robot Description: ## Description Add English translations for 652 markdown documents: - Repo-level guides: README_en.md, CONTRIBUTING_en.md, SECURITY_en.md, CHANGELOG_en.md, codearts_check_rule_config_en.md - Operator READMEs under activation/, conv/, control/, foreach/, hash/, index/, loss/, matmul/, norm/, optim/, pooling/, quant/, rnn/, vfusion/, etc. - API and design docs under docs/ (aclnn_*, ascendir_*, fusion pass docs) - examples/ and torch_extension/ guides Note: a few cross-reference links whose English targets are not published yet temporarily point to their Chinese counterparts to keep links valid; they will be switched back to the English docs in a follow-up PR after this one is merged. ## Related Issue N/A ## Test - Verified all 1,344 intra-repo markdown links in the added files resolve against master: 0 broken links, 0 missing targets. ## Documentation Update - This PR only adds English documentation files (*_en.md); no existing Chinese documents are modified. ## Type Labels - [ ] Bug fix - [ ] New feature - [ ] Performance optimization - [x] Documentation update - [ ] Other, please describe: ## AI/Agent-Generated Declaration - [x] AI-assisted authoring See merge request: cann/ops-nn!13351 | 18 days ago | |
feat(foreach_copy): add UINT64 dtype support(#7963) Co-authored-by: east_yang<yangdong48@huawei.com> # message auto-generated for no-merge-commit merge: !13439 merge feat/foreach-copy-uint64 into master feat(foreach_copy): add UINT64 dtype support(#7963) Created-by: east_yang Commit-by: east_yang Merged-by: cann-robot Description: ## 修改说明 ForeachCopy 算子新增支持 UINT64 数据类型(关联需求:#7963)。 | 修改点 | 说明 | |--------|------| | op_host/foreach_copy_def.cpp | 输入 x / 输出 y 的 DataType 白名单新增 DT_UINT64(主配置与 kirin 配置同步),Format / UnknownShapeFormat 同步扩展 | | op_graph/foreach_copy_proto.h | REG_OP 原型 TensorType 新增 DT_UINT64,注释同步更新 | | op_api/aclnn_foreach_copy.cpp | aclnn 侧 dtype 支持列表新增 DT_UINT64 | | foreach_utils/op_host/common_dtype.h | 新增 TILING_KEY_UINT64 = 10;GetDataTypeSize 补 UINT64 为 8 字节;GetTilingKeyByDtypeOnly 补 UINT64 分支 | | op_host/config/*/foreach_copy_binary.json(7 个平台) | ascend910b / ascend910_93 / ascend950 / ascend960dt / ascend350 / kirin9030 / kirinx90 新增 uint64 binary 条目 | | README.md / docs/aclnnForeachCopy.md | 数据类型说明新增 UINT64 | | tests/ut/op_host/arch22/test_foreach_copy_tiling.cpp | 新增 uint64 tiling 用例,断言 tiling key = 10 | | tests/ut/op_host/op_api/test_aclnn_foreach_copy.cpp | 新增 ACL_UINT64 同 dtype 正例 | | tests/ut/op_kernel/test_foreach_copy.cpp 及 copy_data 脚本 | 新增 uint64 kernel 执行用例(tiling key 10),gen_data.py / compare_data.py 补 uint64_t 支持 | 设计要点:UINT64 与 INT64 同为 8 字节逐元素拷贝,语义一致,因此复用 INT64 的 tiling key(=10)与 kernel 模板(TILING_KEY_IS(10) 已有 FOREACH_COPY_OP(uint64_t) 实例化),kernel 侧无需改动;公共 tiling 补齐 GetTilingKeyByDtypeOnly 分支后即可正确路由。 ## 验证结论 - 编译:bash build.sh --ops=foreach_copy --soc=ascend910b -j32 通过;构建流水自动生成 ForeachCopy_d352cc839cc9cf38d3898facf84a2f1f_high_performance.o,binary json 中 bin_filename 哈希与编译产物一致 - op_host UT:bash build.sh -u --ophost --ops=foreach_copy 5 tests PASSED(含新增 tiling 用例 foreach_copy_test_tiling_uint64) - op_api UT:bash build.sh -u --opapi --ops=foreach_copy 11 tests PASSED(含新增 ascend910B2_foreach_copy_test_uint64) - op_kernel UT:bash build.sh -u --opkernel --ops=foreach_copy 13 tests PASSED(含新增 test_case_uint64,输出与 golden 逐元素比对通过) Closes #7963 See merge request: cann/ops-nn!13439 | 16 days ago | |
fix(foreach_pow_scalar): 补齐 arch35 tiling 输出存储容量校验 Co-authored-by: yefeicoding<yefei25@huawei.com> # message auto-generated for no-merge-commit merge: !13528 merge fix/operator-validation-20261030 into master fix(foreach_pow_scalar): 补齐 arch35 tiling 输出存储容量校验 Created-by: yefeicoding Commit-by: yefeicoding Merged-by: cann-robot Description: ## 描述 本 PR 补齐 foreach_pow_scalar arch35 tiling 的输出存储容量校验,并同步相关中英文文档约束。 - foreach/foreach_pow_scalar/op_host/arch35/foreach_pow_scalar_tiling_arch35.cpp:复用 foreach_utils 的 ForeachFlatRegbaseValidation::ValidateHomogeneous<1>,在 tiling 入口校验 x/out 列表长度一致、x 各成员 dtype 一致且受支持、同位置输出 dtype 一致、维度不超过 8 且非负,以及 y[i] storage size >= x[i] storage size;删除与共享校验重复的 x 成员 dtype 循环。 - foreach/foreach_pow_scalar/docs/aclnnForeachPowScalar.md、aclnnForeachPowScalarV2.md:out 约束恢复为“shape size 大于等于入参 x 的 shape size”,与 arch22 已有行为一致。 - foreach/foreach_pow_scalar/docs/aclnnForeachPowScalar_en.md、aclnnForeachPowScalarV2_en.md:同步英文文档——out 非连续标识由 × 改为 √;错误码表对齐中文文档(161002 ACLNN_ERR_PARAM_INVALID,补充 TensorList 长度不一致与 scalar 元素数约束,返回码列表头修正为 Return Code)。 - norm/bn_infer_grad/README.md:参数表中 grads/x_backprop 数据格式去掉“(仅A2/A3)”内联标注,产品差异统一放入约束说明。 - foreach/foreach_pow_scalar/tests/ut/op_host/arch35/test_foreach_pow_scalar_tiling.cpp:扩展 DoCase 支持指定 y storage shape 与预期失败,新增 foreach_pow_scalar_out_storage_smaller。 ## 关联的Issue #8040 ## 测试 - bash build.sh -u --ophost --ops=foreach_pow_scalar --soc=ascend950 --ut_mode=fast → 7/7 PASS(含新增的 y storage 小于 x 的失败用例)。 - 提交前 pre-commit(clang-format、codespell、OAT 等)通过。 - 未上板执行新增包;本次为 tiling 校验、中英文文档与 UT 变更。 ## 文档更新 - foreach/foreach_pow_scalar/docs/aclnnForeachPowScalar.md - foreach/foreach_pow_scalar/docs/aclnnForeachPowScalarV2.md - foreach/foreach_pow_scalar/docs/aclnnForeachPowScalar_en.md - foreach/foreach_pow_scalar/docs/aclnnForeachPowScalarV2_en.md - norm/bn_infer_grad/README.md ## 类型标签 - [x] Bug修复 - [ ] 新特性 - [ ] 性能优化 - [x] 文档更新 - [ ] 其他,请描述: ## AI/Agent生成声明 - [x] AI辅助编写 See merge request: cann/ops-nn!13528 | 16 days ago | |
fix(foreach_cosh): 修复 arch35 边界校验并补齐资料 Co-authored-by: wuchengwen_oh<wuchengwen4@huawei.com> # message auto-generated for no-merge-commit merge: !13179 merge fix/foreach_cosh_validation into master fix(foreach_cosh): 修复 arch35 边界校验并补齐资料 Created-by: wuchengwen_oh Commit-by: wuchengwen_oh Merged-by: cann-robot Description: ## 背景 修复 ForeachCosh 在算子验证中发现的 arch35 边界校验与资料一致性问题。共享 tiling 的 A2/A3 越界修复已拆到单独 PR #13383,本 PR 不含共享代码改动。 ## 代码改动 ### arch35 tiling(op_host/arch35/foreach_cosh_tiling.cpp) - **空 TensorList**:元素 0 不存在时默认 FLOAT,走单空核 no-op 路径,保证 tiling key 有效(不再落到 key 0 或读取不存在的元素 0)。 - **列表内 dtype 一致性**:逐成员校验,混合 dtype 在 tiling 阶段返回失败。 - **维度上限**:新增每个成员 rank > 8 拒绝,与文档 0-8 维一致。 - **UB 下溢**:ubSize == 0 改为 ubSize <= DCACHE_SIZE(128KiB) 拒绝,避免 ubSize - DCACHE_SIZE 无符号回绕后再窄化为 uint32 写入 SetLocalMemorySize。 - 保留原有 tensorNum > 256 拒绝。 ## 文档改动 ### README.md - y 约束由“shape size 大于等于 x”改为“x 与 y 成员数量必须相等、逐成员 shape 完全相等”。 - 约束说明:输出支持非连续 Tensor;维度 0-8;TensorList 上限 256;空 TensorList 为 no-op。 - 调用方式改为 aclnn API / GE图模式。 ### docs/aclnnForeachCosh.md - aclnnForeachCoshGetWorkspaceSize 原型中 out 由 const aclTensorList* 改为 aclTensorList*。 - 参数说明:补 256 上限、x/out 成员数量相等、逐成员 shape 完全相等。 - 错误表:161001 明确为列表指针为空;合并为单个 ACLNN_ERR_PARAM_INVALID / 161002,覆盖 dtype 不支持、x/out dtype 不一致、成员数量不一致、shape 不满足、列表内 dtype 不一致、维度超过 8、列表成员空指针、私有格式;移除与实际不符的 561002 ACLNN_ERR_INNER_TILING_ERROR(首段 CheckShape 实际返回 161002)。 - 约束说明:补空 TensorList、维度 0-8、256 上限;数据格式明确为 ND、NCHW、NHWC、HWCN、NDHWC、NCDHW(私有格式不支持)。 ## 验证 - 编译:build.sh --pkg --soc=ascend950 --ops=foreach_cosh、--soc=ascend910b 均 Build package success。 - host UT:build.sh -u --soc=ascend950 --ops=foreach_cosh RC=0(含 ForeachCoshTest.infer_shape_known_success / infer_dtype_test_1)。 - 示例:examples/test_aclnn_foreach_cosh.cpp 与 docs/aclnnForeachCosh.md 中的示例分别编译、运行通过(device 1),cosh(1..9) 输出与参考一致。 ## 范围说明 - 未改 foreach/foreach_cosh/tests/、op_kernel/arch35/foreach_cosh_simt.h、op_host/op_api/aclnn_foreach_cosh.cpp。 - 共享 foreach_tiling_class.h 的 A2/A3 越界修复在单独 PR #13383,本 PR 不含。 - arch22(Atlas A3/A2、Kirin)超过 256 成员仍为静默截断(代码未改;文档仅声明上限 256,不再描述超限行为差异)。 - 图模式下声明 out dtype/shape 与 x 不一致时,infer 会归一化为 x 的值;本次未在 tiling 增加 out dtype 校验。 - 关联 Issue:[#8071](https://gitcode.com/cann/ops-nn/issues/8071)(arch22 >256 成员静默截断,未随本 PR 修复)。 See merge request: cann/ops-nn!13179 | 18 days ago | |
[Fix] 长尾算子加固:ForeachDivList 契约对齐社区 issue(out shape size≥x1) Co-authored-by: wenqi_wu<wenqiwu0628@163.com> # message auto-generated for no-merge-commit merge: !13515 merge fix/changwei_jiaoyiming-35+36+37 into master [Fix] 长尾算子加固:ForeachDivList 契约对齐社区 issue(out shape size≥x1) Created-by: wenqi_wu Commit-by: wenqi_wu Merged-by: cann-robot Description: ## 描述 针对社区对 aclnnForeachDivList 提出的 3 个问题单(wangyueting/changwei_jiaoyiming #35/#36/#37)完成闭环: - **#37 out 约束方向(本 PR 代码修复)**:按文档原始口径"out 的 shape size 大于等于 x1 的 shape size"恢复契约——op_api CheckShape 的 out 校验由逐元素完全相等放宽为 **out 元素数 ≥ x1**(并补 out rank≤8,EZ0015 注册错误码上报);arch35 tiling 由"元素数相等"改为 **">="**(对齐公共 ForeachCommonTiling 与 foreach_abs / ForeachAddcdivScalar(PR#13111) 同族口径);文档 out 行恢复"shape size大于等于"。 - **#35 列表长度失配报错打印错误对(核验为上游已解决,本 PR 附真机验证)**:当前实现报错已打印三方 size("x1=…, x2=…, out=…")且 EZ0038 上报真实失配参数名;真机探针确认 out 长度失配双向返回 161002、无崩溃。 - **#36 错误码表 561002 vs 161002(核验为已解决,本 PR 附真机验证)**:文档错误码表 8 类 host 侧参数校验均为 161002/ACLNN_ERR_PARAM_INVALID(561002 为 tiling 内部错误码,host 参数校验按 ACLNN 语义归 161002);真机探针断言 x2 shape 失配 / dtype 不支持等场景均返回 161002。 **测试补强**: - 新增 op_api UT 8 例(本算子此前无 op_api UT):基线、out 更大、同 numel 异 shape、out 更小、列表失配双向、x2 shape 失配、不支持的 dtype——同时守护 #35/#36 的错误码口径; - 新增 tests/ut/op_host/op_api/ 构建挂载(父级 CMakeLists 补 add_subdirectory 循环与 OP_API_UT 注册); - arch35 tiling UT 新增 out 更大正例与 out 更小负例。 ## 关联的Issue - #8030 https://gitcode.com/cann/ops-nn/issues/8030 <!-- 创建后回填 --> - 外部问题单:https://gitcode.com/wangyueting/changwei_jiaoyiming/issues/35 - https://gitcode.com/wangyueting/changwei_jiaoyiming/issues/36 - https://gitcode.com/wangyueting/changwei_jiaoyiming/issues/37 ## 测试 - UT:bash build.sh -u --ops=foreach_div_list -j64 全绿(arch22 tiling 2/2 + **op_api 8/8(新增)** + kernel 3/3);--soc=ascend950 全绿(arch35 tiling 5/5,含新增 2 例 + op_api 8/8) - 构建:--pkg --soc=ascend950 出包并隔离安装 - 真机:Ascend950PR 上 9 用例 ACLNN 探针 **9/9 PASS**——out=(2,4)/(3,2)/(6,) 执行成功且逐元素数值正确(y=x1/x2);out 更小 / out 列表双向失配 / x2 shape 失配 / dtype 不支持均返回 161002、无崩溃 - 门禁:pre-commit 全 hook 通过(clang-format/codespell/OAT 等,7 文件) ## 文档更新 - docs/aclnnForeachDivList.md:out 行恢复"shape size大于等于入参x1的shape size";错误码表 shape 行补注(含 out shape size 小于 x1) ## 类型标签 - [x] Bug修复 - [x] 文档更新 - [ ] 新特性 - [ ] 性能优化 - [ ] 其他,请描述: ## AI/Agent生成声明 - AI辅助编写 See merge request: cann/ops-nn!13515 | 17 days ago | |
docs: add English translations for operator READMEs and repo docs Co-authored-by: jenny_xiang<jenny.xiang@huawei.com> # message auto-generated for no-merge-commit merge: !13351 merge docs/add-english-docs into master docs: add English translations for operator READMEs and repo docs Created-by: jenny_xiang Commit-by: jenny_xiang Merged-by: cann-robot Description: ## Description Add English translations for 652 markdown documents: - Repo-level guides: README_en.md, CONTRIBUTING_en.md, SECURITY_en.md, CHANGELOG_en.md, codearts_check_rule_config_en.md - Operator READMEs under activation/, conv/, control/, foreach/, hash/, index/, loss/, matmul/, norm/, optim/, pooling/, quant/, rnn/, vfusion/, etc. - API and design docs under docs/ (aclnn_*, ascendir_*, fusion pass docs) - examples/ and torch_extension/ guides Note: a few cross-reference links whose English targets are not published yet temporarily point to their Chinese counterparts to keep links valid; they will be switched back to the English docs in a follow-up PR after this one is merged. ## Related Issue N/A ## Test - Verified all 1,344 intra-repo markdown links in the added files resolve against master: 0 broken links, 0 missing targets. ## Documentation Update - This PR only adds English documentation files (*_en.md); no existing Chinese documents are modified. ## Type Labels - [ ] Bug fix - [ ] New feature - [ ] Performance optimization - [x] Documentation update - [ ] Other, please describe: ## AI/Agent-Generated Declaration - [x] AI-assisted authoring See merge request: cann/ops-nn!13351 | 18 days ago | |
modified md files Co-authored-by: duhuiping<duhuiping@h-partners.com> # message auto-generated for no-merge-commit merge: !13817 merge master into master modified md files Created-by: gitee-duhuiping Commit-by: duhuiping Merged-by: cann-robot Description: ## 描述 - Changed the product name. - Adjust the error code table and correct the value of rowspand. ## 关联的Issue none ## 测试 Only involves updating the MD document description, does not involve testing. ## 文档更新 md files ## 类型标签 <!-- [x] 表示选中 --> - [ ] Bug修复 - [ ] 新特性 - [ ] 性能优化 - [x] 文档更新 - [ ] 其他,请描述: See merge request: cann/ops-nn!13817 | 13 days ago | |
fix(foreach): ForeachMulScalarList/ForeachDivScalarList aclnn接口支持非连续输出 Co-authored-by: yifangao<gaoyifan20@huawei.com> # message auto-generated for no-merge-commit merge: !12475 merge support-non-contiguous into master fix(foreach): ForeachMulScalarList/ForeachDivScalarList aclnn接口支持非连续输出 Created-by: yifangao Commit-by: yifangao Merged-by: cann-robot Description: ## 描述 <!--在这里详细描述你的改动,包括改动的原因和所采取的方法。--> 将aclnnForeachMulScalarList/aclnnForeachDivScalarList改成手写接口,支持输出非连续 ## 关联的Issue <!-- 如果这个PR是为了解决特定的Issue,请在这里提供Issue链接。例如:关联Issue #000--> https://gitcode.com/cann/ops-nn/issues/8086 ## 测试 <!--描述进行了哪些测试来验证你的改动。--> David冒烟:http://7.215.10.221/scheduler/alljobs?length=100&isalljobs=true&search=20261103_205404729 obp冒烟:http://7.215.10.221/scheduler/alljobs?length=100&isalljobs=true&search=20261104_025754167  ## 文档更新 <!--如果这个PR包含文档的更新,请在这里指出。例如:更新了README.md文件。--> ## 类型标签 <!-- [x] 表示选中 --> - [ ] Bug修复 - [x] 新特性 - [ ] 性能优化 - [x] 文档更新 - [ ] 其他,请描述: ## AI/Agent生成声明 <!-- [x] 表示选中 --> - [ ] AI辅助编写 See merge request: cann/ops-nn!12475 | 18 days ago | |
fix(foreach_erf): 算子质量加固——tiling/aclnn 输入校验补齐、示例与 UT 治理、资料对齐与测试资产归档 Co-authored-by: dengguojie<dengguojie@huawei.com> # message auto-generated for no-merge-commit merge: !13274 merge hardening/ForeachErf into master fix(foreach_erf): 算子质量加固——tiling/aclnn 输入校验补齐、示例与 UT 治理、资料对齐与测试资产归档 Created-by: dengguojie Commit-by: dengguojie Merged-by: cann-robot Description: ## 描述 <!--在这里详细描述你的改动,包括改动的原因和所采取的方法。--> 对 ForeachErf(foreach 族逐元素误差函数,ND 格式,Ascend 950 主交付面)进行质量加固:补全 tiling 与 aclnn 入口的输入校验,计算核切换为 simt 库 erff 直调用,修复示例资源泄漏与 UT 比对信号,对齐中英文档并新建 README_en,归档 golden 基准与四通路看护用例。全部修复项清单见 #7866。 ## 关联的Issue <!-- 如果这个PR是为了解决特定的Issue,请在这里提供Issue链接。例如:关联Issue #000--> Closes #7866 ## 测试 <!--描述进行了哪些测试来验证你的改动。--> - HostUT 31/31 全绿(tiling 套件 19+aclnn 套件 12),host 侧行覆盖 95.2%。 - KERNEL 看护集 91/91 全 PASS(三方比对:golden+远端 GPU torch);geir/aclnn/torch 通路全量零退化。 - golden 基准 aclnn 通路修复 out 容器反填缺陷:比对真值改由返回值承载、out 零写入,aclnn 看护集 87/87 复跑全 PASS,该通路的输出比对真实生效。 - erff 替换 A/B 验证:f16/bf16 与基准逐位一致,f32 常态域舍入误差收敛至 1 ulp;纯设备时间中位 +15.8%(已评估接受)。 - 空 Tensor 成员、列表长度 256 边界、任意维度输入等行为专项验证通过。 ## 文档更新 <!--如果这个PR包含文档的更新,请在这里指出。例如:更新了README.md文件。--> README.md、README_en.md(新增)、docs/aclnnForeachErf.md 及 _en.md:错误码表对齐现役实码、out shape 语义更正、非连续声明、约束节收敛。 ## 类型标签 <!-- [x] 表示选中 --> - [x] Bug修复 - [ ] 新特性 - [ ] 性能优化 - [x] 文档更新 - [x] 其他,请描述:算子质量加固 ## AI/Agent生成声明 <!-- [x] 表示选中 --> - [x] AI辅助编写 See merge request: cann/ops-nn!13274 | 13 days ago | |
fix(foreach): 加固 foreach_erfc arch35 校验与 aclnn 健壮性并修正资料口径 Co-authored-by: duxinlei<duxinlei@h-partners.com> # message auto-generated for no-merge-commit merge: !13805 merge fix/foreach-erfc-hardening into master fix(foreach): 加固 foreach_erfc arch35 校验与 aclnn 健壮性并修正资料口径 Created-by: duxinlei Commit-by: duxinlei Merged-by: cann-robot Description: ## 描述 <!--在这里详细描述你的改动,包括改动的原因和所采取的方法。--> fix(foreach): 加固长尾算子 foreach_erfc arch35 校验与 aclnn 健壮性并修正资料口径 ## 关联的Issue <!-- 如果这个PR是为了解决特定的Issue,请在这里提供Issue链接。例如:关联Issue #000--> 关联Issue [#8035](https://gitcode.com/cann/ops-nn/issues/8035) ## 测试 <!--描述进行了哪些测试来验证你的改动。--> ## 文档更新 <!--如果这个PR包含文档的更新,请在这里指出。例如:更新了README.md文件。--> ## 类型标签 <!-- [x] 表示选中 --> - [x] Bug修复 - [ ] 新特性 - [ ] 性能优化 - [ ] 文档更新 - [ ] 其他,请描述: ## AI/Agent生成声明 <!-- [x] 表示选中 --> - [ ] AI辅助编写 See merge request: cann/ops-nn!13805 | 15 days ago | |
docs: add English translations for operator READMEs and repo docs Co-authored-by: jenny_xiang<jenny.xiang@huawei.com> # message auto-generated for no-merge-commit merge: !13351 merge docs/add-english-docs into master docs: add English translations for operator READMEs and repo docs Created-by: jenny_xiang Commit-by: jenny_xiang Merged-by: cann-robot Description: ## Description Add English translations for 652 markdown documents: - Repo-level guides: README_en.md, CONTRIBUTING_en.md, SECURITY_en.md, CHANGELOG_en.md, codearts_check_rule_config_en.md - Operator READMEs under activation/, conv/, control/, foreach/, hash/, index/, loss/, matmul/, norm/, optim/, pooling/, quant/, rnn/, vfusion/, etc. - API and design docs under docs/ (aclnn_*, ascendir_*, fusion pass docs) - examples/ and torch_extension/ guides Note: a few cross-reference links whose English targets are not published yet temporarily point to their Chinese counterparts to keep links valid; they will be switched back to the English docs in a follow-up PR after this one is merged. ## Related Issue N/A ## Test - Verified all 1,344 intra-repo markdown links in the added files resolve against master: 0 broken links, 0 missing targets. ## Documentation Update - This PR only adds English documentation files (*_en.md); no existing Chinese documents are modified. ## Type Labels - [ ] Bug fix - [ ] New feature - [ ] Performance optimization - [x] Documentation update - [ ] Other, please describe: ## AI/Agent-Generated Declaration - [x] AI-assisted authoring See merge request: cann/ops-nn!13351 | 18 days ago | |
fix/foreach-expm1-a5-issues Co-authored-by: Dyrong<dengyirong@huawei.com> # message auto-generated for no-merge-commit merge: !13857 merge fix/foreach-expm1-a5-issues into master fix/foreach-expm1-a5-issues Created-by: Dyrong Commit-by: Dyrong Merged-by: cann-robot Description: ## 描述 优化foreach_expm1算子部分场景性能,并修改资料相关描述与代码不一致问题 ## 关联的Issue https://gitcode.com/cann/ops-nn/issues/8335 ## 测试 CannbotHarness全量上板测试功能和性能 ## 文档更新 README.md/aclnnForeachExpm1.md ## 类型标签 - [x] Bug修复 - [ ] 新特性 - [ ] 性能优化 - [ ] 文档更新 - [ ] 其他,请描述: ## AI/Agent生成声明 - [ ] AI辅助编写 See merge request: cann/ops-nn!13857 | 13 days ago | |
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 | 18 days ago | |
fix(foreach): 8个issue批量修复——错误码表对齐161002、out shape约束、列表长度错误码、资料修正、UT补齐 Co-authored-by: Tian_1122<tianjunhan@h-partners.com> # message auto-generated for no-merge-commit merge: !13610 merge fix/foreach-issue-batch-20261104 into master fix(foreach): 8个issue批量修复——错误码表对齐161002、out shape约束、列表长度错误码、资料修正、UT补齐 Created-by: Tian_1122 Commit-by: Tian_1122 Merged-by: cann-robot Description: ## 描述 <!--在这里详细描述你的改动,包括改动的原因和所采取的方法。--> 本 PR 针对 foreach 系列算子(aclnnForeachAddListV2、aclnnForeachAddScalar/V2、aclnnForeachAddcmulScalarV2)批量修复 8 个 issue,主要围绕错误码与参数校验规则对齐:统一列表长度不一致时的校验位置与错误码(161002),将 out 与 x1 的 shape 约束由“必须完全一致”改为“out 元素数不小于 x1”,补充 out 的最大维度检查,并同步修正接口文档中的数据类型说明、补齐 Host 与 Kernel 侧 UT。 ## 关联的Issue <!-- 如果这个PR是为了解决特定的Issue,请在这里提供Issue链接。例如:关联Issue #000--> [#7937](https://gitcode.com/cann/ops-nn/issues/7937) [#7929](https://gitcode.com/cann/ops-nn/issues/7929) [#7926](https://gitcode.com/cann/ops-nn/issues/7926) [#7925](https://gitcode.com/cann/ops-nn/issues/7925) [#7939](https://gitcode.com/cann/ops-nn/issues/7939) [#7967](https://gitcode.com/cann/ops-nn/issues/7967) [#7946](https://gitcode.com/cann/ops-nn/issues/7946) [#7945](https://gitcode.com/cann/ops-nn/issues/7945) ## 测试 <!--描述进行了哪些测试来验证你的改动。--> ## 文档更新 <!--如果这个PR包含文档的更新,请在这里指出。例如:更新了README.md文件。--> ## 类型标签 <!-- [x] 表示选中 --> - [x] Bug修复 - [ ] 新特性 - [ ] 性能优化 - [ ] 文档更新 - [ ] 其他,请描述: ## AI/Agent生成声明 <!-- [x] 表示选中 --> - [ ] AI辅助编写 See merge request: cann/ops-nn!13610 | 17 days ago | |
fix(foreach_log): harden tiling, align docs, clean example resources Co-authored-by: wuchengwen_oh<wuchengwen4@huawei.com> # message auto-generated for no-merge-commit merge: !13148 merge fix/foreach_log-remediation-20261029T111523 into master fix(foreach_log): harden tiling, align docs, clean example resources Created-by: wuchengwen_oh Commit-by: wuchengwen_oh Merged-by: cann-robot Description: > 关联 Issue: [#8070](https://gitcode.com/cann/ops-nn/issues/8070) ## 改动 ### 代码 - op_host/arch35/foreach_log_tiling.cpp - 新增 FillTensorListInfo() 统一成员扫描;空 TensorList 直接返回成功(原实现无条件读取第 0 个成员描述符,空列表会失败)。 - 新增校验:列表内成员 dtype 一致、Tensor 维度 ≤8、shape size 非负、totalElements 的 int64 累加溢出、needCoreNum > 0。 - UB 下界保护:ubSize <= DCACHE_SIZE 时返回失败,避免无符号减下溢后再窄化为 uint32。 - >256 成员拒绝保留并前置到入口处,避免 tiling data 数组静默截断。 - examples/test_aclnn_foreach_log.cpp:改为 RAII(Resources 析构统一释放),失败路径不再跳过 aclDestroyTensorList/aclrtFree/aclrtDestroyStream/aclrtResetDevice/aclFinalize。 ### 文档 - README.md:修正“输出不支持非连续Tensor”为实际支持的表述;补充 x/y 必选、维度 ≤8、成员数一致/≤256、数据格式支持 ND、NCHW、NHWC、HWCN、NDHWC、NCDHW、空 TensorList 行为。 - docs/aclnnForeachLog.md / aclnnForeachLog_en.md - out 去掉 const,与头文件一致。 - 参数表补充成员数一致/≤256、0 成员行为、out 与 x 逐成员 shape 一致、数据格式支持 ND、NCHW、NHWC、HWCN、NDHWC、NCDHW。 - 错误码表 161002 扩为 6 项(新增的格式不在支持列表内);英文旧表中挂在 561002 的 shape/成员 dtype/超 8 维统一为 161002。 - 约束说明补充 ≤256 上限与格式说明;末尾调用示例与 examples 同步为 RAII 版本。 - 不再描述动态维(属框架通用的图模式行为,非本算子特有)。 ## 验证(Ascend950,device 3,TTK ba68614 + 本地补丁) - 重新编包通过;9 维用例返回 tensor 0 has 9 dims, which exceeds the limit 8,4 维用例 PASS。 - examples 与中英文文档示例均编译并运行 exit 0,输出 ln(1..6)/ln(7..9) 正确。 - ACLNN:L0 执行 22(完成比较 16)、L1 执行 413(完成比较 375),0 失败(3 比较缺口、35 例空/无度量);确定性 22 执行/16 比较。 - Kernel:L0 执行 44、L1 执行 515;GEIR:L0 执行 44(cst/dyn 各完成比较 41,0 失败)。 - 动态 shape(-1/-2)修复前后各跑一次均 PASS;空 TensorList 两段接口返回成功、workspaceSize=0。 - >256 与负维的产品差异经 Host 侧 tiling 模拟验证:arch22 截断到前 256 且不拒绝负维,arch35 两者均返回失败(本机无 A2/A3 设备,非上板)。 基于 master 7ac444a7c。 See merge request: cann/ops-nn!13148 | 18 days ago | |
docs: add English translations for operator READMEs and repo docs Co-authored-by: jenny_xiang<jenny.xiang@huawei.com> # message auto-generated for no-merge-commit merge: !13351 merge docs/add-english-docs into master docs: add English translations for operator READMEs and repo docs Created-by: jenny_xiang Commit-by: jenny_xiang Merged-by: cann-robot Description: ## Description Add English translations for 652 markdown documents: - Repo-level guides: README_en.md, CONTRIBUTING_en.md, SECURITY_en.md, CHANGELOG_en.md, codearts_check_rule_config_en.md - Operator READMEs under activation/, conv/, control/, foreach/, hash/, index/, loss/, matmul/, norm/, optim/, pooling/, quant/, rnn/, vfusion/, etc. - API and design docs under docs/ (aclnn_*, ascendir_*, fusion pass docs) - examples/ and torch_extension/ guides Note: a few cross-reference links whose English targets are not published yet temporarily point to their Chinese counterparts to keep links valid; they will be switched back to the English docs in a follow-up PR after this one is merged. ## Related Issue N/A ## Test - Verified all 1,344 intra-repo markdown links in the added files resolve against master: 0 broken links, 0 missing targets. ## Documentation Update - This PR only adds English documentation files (*_en.md); no existing Chinese documents are modified. ## Type Labels - [ ] Bug fix - [ ] New feature - [ ] Performance optimization - [x] Documentation update - [ ] Other, please describe: ## AI/Agent-Generated Declaration - [x] AI-assisted authoring See merge request: cann/ops-nn!13351 | 18 days ago | |
feat(foreach_log1p): 算子质量加固——tiling校验补齐/aclnn派发修复/UT与文档完善 Co-authored-by: dengguojie<dengguojie@huawei.com> # message auto-generated for no-merge-commit merge: !13442 merge hardening/ForeachLog1p into master feat(foreach_log1p): 算子质量加固——tiling校验补齐/aclnn派发修复/UT与文档完善 Created-by: dengguojie Commit-by: dengguojie Merged-by: cann-robot Description: ## 描述 foreach_log1p 算子修复与完善:补齐 arch35 tiling 输入/输出侧校验并按校验维度拆分为小函数、恢复 TilingParse 编译期填充、清退无依据的维度限制、修复空 TensorList 拒绝路径,并完善单元测试、中英文文档与四通路看护用例集。 修复要点(编号对应关联 issue 中的问题清单): | 修复项 | 改动域 | |--------|--------| | FL-01 删除 aclnn 层越权 format 校验(x/y 在 proto 中仅注册 FORMAT_ND,格式契约由注册面承载) | op_api/aclnn_foreach_log1p.cpp | | FL-03 TensorList 成员数超 256 显式拒绝(消除公共 tiling 循环上限静默截断) | op_api/aclnn_foreach_log1p.cpp | | FL-05 张量数上限 128→256 对齐家族基线 + static_cast<int32_t> 窄化比较修正 | op_kernel/arch35/foreach_log1p_tiling_data.h | | FL-06/FL-07 元素累加溢出保护 + 溢出安全除法、GetTilingData/GetWorkspaceSizes 返回值判空 | op_host/arch35 tiling | | FL-08 平台参数运行时直查 + coreNum/ubSize 非正值显式失败(删除 FALLBACK 写死值) | op_host/arch35 tiling | | FL-09 跨实例 dtype 一致性校验 | op_host/arch35 tiling | | FL-10 输出侧 count/desc/shape/dtype/rank 校验 | op_host/arch35 tiling | | FL-R35 tiling 校验函数小函数化(校验原语 1:1 搬移,零行为变更) | op_host/arch35 tiling | | FL-R37 恢复 TilingParseForForeachLog1p 编译期填充(compileInfo 优先 + 运行时直查兜底,平台参数无效显式失败) | op_host/arch35 tiling | | FL-R38 coreNum≤0 显式拒绝(消除负值经 SetBlockDim 无符号回绕) | op_host/arch35 tiling | | FL-R02 维度限制清退(9 维输入系合法输入,删 tiling/aclnn 维度拦截与文档维度条款) | op_host/arch35 tiling、op_api、README、docs | | FL-R04 空 TensorList 特判(0 成员按 FP32 tilingKey 放行为 no-op,对齐家族先例) | op_host/arch35 tiling | | FL-R12 手写向上取整等价物替换为公共封装 Ops::Base::CeilDiv | op_host/arch35 tiling | | FL-11 SIMT 内核 VF 任务启动与索引改 asc_vf_call/dim3/built-in 形式 | op_kernel/arch35/foreach_log1p_simt.h | | FL-12/FL-13/FL-R16 op_kernel UT 执行修复(补 ICPU_RUN_KF)、比较脚本判定门恢复与退出码断言 | tests/ut/op_kernel | | FL-R38 compare_data.py bfloat16 位级还原修复(bf16 字节流按位转 fp32 后比较,判定门与 bf16 语义对齐) | tests/ut/op_kernel/log1p_data/compare_data.py | | FL-14 交付文件格式与 lint 违规清理(CMakeLists/数据脚本,零逻辑改动) | 多文件 | | FL-15 golden 参考实现 aclnn 通路 out 槽不回写(保持高精度比对锚点) | tests/assets/golden.py | | FL-16/FL-R14 host 侧 UT 覆盖补齐(tiling 与 op_api 正负向用例,终态 27 例全过) | tests/ut/op_host | | FL-17~22、FL-24 与复审轮文档修正(FL-R06/R09/R10/R11/R28~R31/R33/R34):dtype 命名、out shape 口径、错误码表重排、256 上限、空 TensorList 行为、非连续支持机制、约束条款精简与口径统一 | README.md、docs/aclnnForeachLog1p.md(_en) | | FL-R25 README_en 双语适配(对齐上游英文 README 模板,中英约束逐条镜像) | README_en.md | | FL-R13/FL-R15/FL-R36/FL-R43 四通路看护用例集归档与构成修订(kernel 96/aclnn 89/geir 100/torch 100) | tests/st/arch35 | ## 关联的Issue Closes #7972 ## 测试 - host 侧 UT 27 例全部通过(op_host 13 + op_api 14) - kernel 通路全量回归 792 例(既有主套 200 例 200/200 通过 + 真机套件 592 例),失败集与基线逐例一致,零新增失败、零退化 - aclnn 通路与第三方参考实现交叉比对 251 例全部通过 - 四通路看护用例集归档至 tests/st/arch35:kernel 96/aclnn 89/geir 100/torch 100;用例格式校验全部通过,每通路抽样执行通过 - pre-commit 检查(格式/lint/合规扫描)通过 ## 文档更新 - README.md/README_en.md:参数表 dtype 命名修正(FLOAT32→FLOAT)、out shape 口径(与 x 严格一致)、非连续 Tensor 由框架自动转换的机制说明、约束说明精简(Tensor 数上限/数量一致/shape 一致) - docs/aclnnForeachLog1p.md 与 aclnnForeachLog1p_en.md:参数使用说明补齐(空 Tensor/空 TensorList 行为/数据类型一致性)、约束说明精简、错误码表重排(参数校验类条款归 161002,仅 tiling 阶段拒绝归 561002) ## 类型标签 <!-- [x] 表示选中 --> - [x] Bug修复 - [ ] 新特性 - [ ] 性能优化 - [x] 文档更新 - [ ] 其他,请描述: ## AI/Agent生成声明 <!-- [x] 表示选中 --> - [x] AI辅助编写 See merge request: cann/ops-nn!13442 | 16 days ago | |
增加ForeachMulList算子资料说明以及tiling中一致性校验 Co-authored-by: kevin_huang1234<kevin.huangdi@huawei.com> # message auto-generated for no-merge-commit merge: !13689 merge master into master 增加ForeachMulList算子资料说明以及tiling中一致性校验 Created-by: kevin_huang1234 Commit-by: kevin_huang1234 Merged-by: cann-robot Description: ## 描述 <!--在这里详细描述你的改动,包括改动的原因和所采取的方法。--> 增加ForeachMulList算子资料说明以及tiling中一致性校验 ## 关联的Issue <!-- 如果这个PR是为了解决特定的Issue,请在这里提供Issue链接。例如:关联Issue #000--> https://gitcode.com/cann/ops-nn/issues/8369 ## 测试 <!--描述进行了哪些测试来验证你的改动。--> 1. 完成David冒烟测试 2. 完成OBP冒烟测试 3. 完成单算子ST测试 ## 文档更新 <!--如果这个PR包含文档的更新,请在这里指出。例如:更新了README.md文件。--> 1. readme.md中英文 2. aclnnForeachMulList.md中英文 ## 类型标签 <!-- [x] 表示选中 --> - [x] Bug修复 - [ ] 新特性 - [ ] 性能优化 - [ ] 文档更新 - [ ] 其他,请描述: ## AI/Agent生成声明 <!-- [x] 表示选中 --> - [x] AI辅助编写 See merge request: cann/ops-nn!13689 | 13 days ago | |
docs: add English translations for operator READMEs and repo docs Co-authored-by: jenny_xiang<jenny.xiang@huawei.com> # message auto-generated for no-merge-commit merge: !13351 merge docs/add-english-docs into master docs: add English translations for operator READMEs and repo docs Created-by: jenny_xiang Commit-by: jenny_xiang Merged-by: cann-robot Description: ## Description Add English translations for 652 markdown documents: - Repo-level guides: README_en.md, CONTRIBUTING_en.md, SECURITY_en.md, CHANGELOG_en.md, codearts_check_rule_config_en.md - Operator READMEs under activation/, conv/, control/, foreach/, hash/, index/, loss/, matmul/, norm/, optim/, pooling/, quant/, rnn/, vfusion/, etc. - API and design docs under docs/ (aclnn_*, ascendir_*, fusion pass docs) - examples/ and torch_extension/ guides Note: a few cross-reference links whose English targets are not published yet temporarily point to their Chinese counterparts to keep links valid; they will be switched back to the English docs in a follow-up PR after this one is merged. ## Related Issue N/A ## Test - Verified all 1,344 intra-repo markdown links in the added files resolve against master: 0 broken links, 0 missing targets. ## Documentation Update - This PR only adds English documentation files (*_en.md); no existing Chinese documents are modified. ## Type Labels - [ ] Bug fix - [ ] New feature - [ ] Performance optimization - [x] Documentation update - [ ] Other, please describe: ## AI/Agent-Generated Declaration - [x] AI-assisted authoring See merge request: cann/ops-nn!13351 | 18 days ago | |
fix(foreach_maximum_list): 完善 tiling/aclnn 校验、资料与 UT Co-authored-by: wuchengwen_oh<wuchengwen4@huawei.com> # message auto-generated for no-merge-commit merge: !13195 merge fix/foreach_maximum_list-validation into master fix(foreach_maximum_list): 完善 tiling/aclnn 校验、资料与 UT Created-by: wuchengwen_oh Commit-by: wuchengwen_oh Merged-by: cann-robot Description: ## 关联的Issue - #8072 https://gitcode.com/cann/ops-nn/issues/8072 ## 变更说明 ### arch35 Tiling( op_host/arch35/foreach_maximum_list_tiling_arch35.cpp) - 按核均分:去掉65536上限,needCoreNum夹到[1, coreNum],避免大shape下blockDim超核。 - 逐成员校验:x2成员数与x1一致;x1[i]/x2[i] storage shape一致;x1[i]/x2[i] dtype一致;x1列表内dtype与x1[0]一致。 - 维度:成员维度>8拒绝(复用公共op::MAX_SUPPORT_DIMS_NUMS)。 - 格式:输入/输出仅允许ND/NCHW/NHWC/HWCN/NDHWC/NCDHW,私有格式拒绝。 ### aclnn(op_host/op_api/aclnn_foreach_maximum_list.cpp) - CheckShape成员数不一致的错误信息补x1/x2/out三个规模。 - 新增成员数>256 → ACLNN_ERR_PARAM_INVALID(161002)。 ### 资料 - README:补充约束(ND/NCHW/NHWC/HWCN/NDHWC/NCDHW格式、成员数/shape/dtype一致、>256的aclnn与A5/A2-A3图模式差异、空Tensor、维度0~8);修正out描述为“成员数与逐成员shape与x1一致”;非连续Tensor改为“aclnn支持、图模式/kernel仅连续”;调用方式术语改为“aclnn API / GE图模式”。 - aclnn文档:错误码表由2行扩充为6行(dtype不支持、dtype不一致含列表内、成员数/shape、维度>8、>256、私有格式);修正out参数签名(去掉const)与描述。 - proto:修正tensorsr笔误,补全y的描述(element-wise maximum)。 ### 样例 - examples/test_aclnn_foreach_maximum_list.cpp:失败路径统一释放(AclResources析构);CreateAclTensor在memcpy失败时释放已申请device内存。 ### UT - tests/ut/op_host/op_api/test_aclnn_foreach_maximum_list.cpp:新增4条用例(成员数不一致、>256、rank>8、私有格式),断言161002。 ## 验证 - 构建:build.sh --ops=foreach_maximum_list --pkg --soc=ascend950 RC=0。 - UT:op_host 5/5、op_api 5/5、op_kernel 4/4 PASS。 - 图模式(GEIR):rank>8、私有格式(NZ)被拒绝;正向用例PASS。 - 样例:examples/test_aclnn_foreach_maximum_list.cpp与文档调用示例均编译并上板运行通过(RC=0,输出正确)。 ## 说明 - 图模式x1/x2 dtype不一致/列表内dtype混用:GEIR Tiling的GetDynamicInputDesc返回共享desc(GEIR图构造未设置算子节点的动态输入desc),逐成员dtype不可见,不属本仓改动范围。 See merge request: cann/ops-nn!13195 | 18 days ago | |
modified md files Co-authored-by: duhuiping<duhuiping@h-partners.com> # message auto-generated for no-merge-commit merge: !13817 merge master into master modified md files Created-by: gitee-duhuiping Commit-by: duhuiping Merged-by: cann-robot Description: ## 描述 - Changed the product name. - Adjust the error code table and correct the value of rowspand. ## 关联的Issue none ## 测试 Only involves updating the MD document description, does not involve testing. ## 文档更新 md files ## 类型标签 <!-- [x] 表示选中 --> - [ ] Bug修复 - [ ] 新特性 - [ ] 性能优化 - [x] 文档更新 - [ ] 其他,请描述: See merge request: cann/ops-nn!13817 | 13 days ago | |
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 | 18 days ago | |
docs: add English translations for operator READMEs and repo docs Co-authored-by: jenny_xiang<jenny.xiang@huawei.com> # message auto-generated for no-merge-commit merge: !13351 merge docs/add-english-docs into master docs: add English translations for operator READMEs and repo docs Created-by: jenny_xiang Commit-by: jenny_xiang Merged-by: cann-robot Description: ## Description Add English translations for 652 markdown documents: - Repo-level guides: README_en.md, CONTRIBUTING_en.md, SECURITY_en.md, CHANGELOG_en.md, codearts_check_rule_config_en.md - Operator READMEs under activation/, conv/, control/, foreach/, hash/, index/, loss/, matmul/, norm/, optim/, pooling/, quant/, rnn/, vfusion/, etc. - API and design docs under docs/ (aclnn_*, ascendir_*, fusion pass docs) - examples/ and torch_extension/ guides Note: a few cross-reference links whose English targets are not published yet temporarily point to their Chinese counterparts to keep links valid; they will be switched back to the English docs in a follow-up PR after this one is merged. ## Related Issue N/A ## Test - Verified all 1,344 intra-repo markdown links in the added files resolve against master: 0 broken links, 0 missing targets. ## Documentation Update - This PR only adds English documentation files (*_en.md); no existing Chinese documents are modified. ## Type Labels - [ ] Bug fix - [ ] New feature - [ ] Performance optimization - [x] Documentation update - [ ] Other, please describe: ## AI/Agent-Generated Declaration - [x] AI-assisted authoring See merge request: cann/ops-nn!13351 | 18 days ago | |
docs: add English translations for operator READMEs and repo docs Co-authored-by: jenny_xiang<jenny.xiang@huawei.com> # message auto-generated for no-merge-commit merge: !13351 merge docs/add-english-docs into master docs: add English translations for operator READMEs and repo docs Created-by: jenny_xiang Commit-by: jenny_xiang Merged-by: cann-robot Description: ## Description Add English translations for 652 markdown documents: - Repo-level guides: README_en.md, CONTRIBUTING_en.md, SECURITY_en.md, CHANGELOG_en.md, codearts_check_rule_config_en.md - Operator READMEs under activation/, conv/, control/, foreach/, hash/, index/, loss/, matmul/, norm/, optim/, pooling/, quant/, rnn/, vfusion/, etc. - API and design docs under docs/ (aclnn_*, ascendir_*, fusion pass docs) - examples/ and torch_extension/ guides Note: a few cross-reference links whose English targets are not published yet temporarily point to their Chinese counterparts to keep links valid; they will be switched back to the English docs in a follow-up PR after this one is merged. ## Related Issue N/A ## Test - Verified all 1,344 intra-repo markdown links in the added files resolve against master: 0 broken links, 0 missing targets. ## Documentation Update - This PR only adds English documentation files (*_en.md); no existing Chinese documents are modified. ## Type Labels - [ ] Bug fix - [ ] New feature - [ ] Performance optimization - [x] Documentation update - [ ] Other, please describe: ## AI/Agent-Generated Declaration - [x] AI-assisted authoring See merge request: cann/ops-nn!13351 | 18 days ago | |
docs: add English translations for operator READMEs and repo docs Co-authored-by: jenny_xiang<jenny.xiang@huawei.com> # message auto-generated for no-merge-commit merge: !13351 merge docs/add-english-docs into master docs: add English translations for operator READMEs and repo docs Created-by: jenny_xiang Commit-by: jenny_xiang Merged-by: cann-robot Description: ## Description Add English translations for 652 markdown documents: - Repo-level guides: README_en.md, CONTRIBUTING_en.md, SECURITY_en.md, CHANGELOG_en.md, codearts_check_rule_config_en.md - Operator READMEs under activation/, conv/, control/, foreach/, hash/, index/, loss/, matmul/, norm/, optim/, pooling/, quant/, rnn/, vfusion/, etc. - API and design docs under docs/ (aclnn_*, ascendir_*, fusion pass docs) - examples/ and torch_extension/ guides Note: a few cross-reference links whose English targets are not published yet temporarily point to their Chinese counterparts to keep links valid; they will be switched back to the English docs in a follow-up PR after this one is merged. ## Related Issue N/A ## Test - Verified all 1,344 intra-repo markdown links in the added files resolve against master: 0 broken links, 0 missing targets. ## Documentation Update - This PR only adds English documentation files (*_en.md); no existing Chinese documents are modified. ## Type Labels - [ ] Bug fix - [ ] New feature - [ ] Performance optimization - [x] Documentation update - [ ] Other, please describe: ## AI/Agent-Generated Declaration - [x] AI-assisted authoring See merge request: cann/ops-nn!13351 | 18 days ago | |
增加ForeachMulList算子资料说明以及tiling中一致性校验 Co-authored-by: kevin_huang1234<kevin.huangdi@huawei.com> # message auto-generated for no-merge-commit merge: !13689 merge master into master 增加ForeachMulList算子资料说明以及tiling中一致性校验 Created-by: kevin_huang1234 Commit-by: kevin_huang1234 Merged-by: cann-robot Description: ## 描述 <!--在这里详细描述你的改动,包括改动的原因和所采取的方法。--> 增加ForeachMulList算子资料说明以及tiling中一致性校验 ## 关联的Issue <!-- 如果这个PR是为了解决特定的Issue,请在这里提供Issue链接。例如:关联Issue #000--> https://gitcode.com/cann/ops-nn/issues/8369 ## 测试 <!--描述进行了哪些测试来验证你的改动。--> 1. 完成David冒烟测试 2. 完成OBP冒烟测试 3. 完成单算子ST测试 ## 文档更新 <!--如果这个PR包含文档的更新,请在这里指出。例如:更新了README.md文件。--> 1. readme.md中英文 2. aclnnForeachMulList.md中英文 ## 类型标签 <!-- [x] 表示选中 --> - [x] Bug修复 - [ ] 新特性 - [ ] 性能优化 - [ ] 文档更新 - [ ] 其他,请描述: ## AI/Agent生成声明 <!-- [x] 表示选中 --> - [x] AI辅助编写 See merge request: cann/ops-nn!13689 | 13 days ago | |
docs: add English translations for operator READMEs and repo docs Co-authored-by: jenny_xiang<jenny.xiang@huawei.com> # message auto-generated for no-merge-commit merge: !13351 merge docs/add-english-docs into master docs: add English translations for operator READMEs and repo docs Created-by: jenny_xiang Commit-by: jenny_xiang Merged-by: cann-robot Description: ## Description Add English translations for 652 markdown documents: - Repo-level guides: README_en.md, CONTRIBUTING_en.md, SECURITY_en.md, CHANGELOG_en.md, codearts_check_rule_config_en.md - Operator READMEs under activation/, conv/, control/, foreach/, hash/, index/, loss/, matmul/, norm/, optim/, pooling/, quant/, rnn/, vfusion/, etc. - API and design docs under docs/ (aclnn_*, ascendir_*, fusion pass docs) - examples/ and torch_extension/ guides Note: a few cross-reference links whose English targets are not published yet temporarily point to their Chinese counterparts to keep links valid; they will be switched back to the English docs in a follow-up PR after this one is merged. ## Related Issue N/A ## Test - Verified all 1,344 intra-repo markdown links in the added files resolve against master: 0 broken links, 0 missing targets. ## Documentation Update - This PR only adds English documentation files (*_en.md); no existing Chinese documents are modified. ## Type Labels - [ ] Bug fix - [ ] New feature - [ ] Performance optimization - [x] Documentation update - [ ] Other, please describe: ## AI/Agent-Generated Declaration - [x] AI-assisted authoring See merge request: cann/ops-nn!13351 | 18 days ago | |
docs: add English translations for operator READMEs and repo docs Co-authored-by: jenny_xiang<jenny.xiang@huawei.com> # message auto-generated for no-merge-commit merge: !13351 merge docs/add-english-docs into master docs: add English translations for operator READMEs and repo docs Created-by: jenny_xiang Commit-by: jenny_xiang Merged-by: cann-robot Description: ## Description Add English translations for 652 markdown documents: - Repo-level guides: README_en.md, CONTRIBUTING_en.md, SECURITY_en.md, CHANGELOG_en.md, codearts_check_rule_config_en.md - Operator READMEs under activation/, conv/, control/, foreach/, hash/, index/, loss/, matmul/, norm/, optim/, pooling/, quant/, rnn/, vfusion/, etc. - API and design docs under docs/ (aclnn_*, ascendir_*, fusion pass docs) - examples/ and torch_extension/ guides Note: a few cross-reference links whose English targets are not published yet temporarily point to their Chinese counterparts to keep links valid; they will be switched back to the English docs in a follow-up PR after this one is merged. ## Related Issue N/A ## Test - Verified all 1,344 intra-repo markdown links in the added files resolve against master: 0 broken links, 0 missing targets. ## Documentation Update - This PR only adds English documentation files (*_en.md); no existing Chinese documents are modified. ## Type Labels - [ ] Bug fix - [ ] New feature - [ ] Performance optimization - [x] Documentation update - [ ] Other, please describe: ## AI/Agent-Generated Declaration - [x] AI-assisted authoring See merge request: cann/ops-nn!13351 | 18 days ago | |
docs: add English translations for operator READMEs and repo docs Co-authored-by: jenny_xiang<jenny.xiang@huawei.com> # message auto-generated for no-merge-commit merge: !13351 merge docs/add-english-docs into master docs: add English translations for operator READMEs and repo docs Created-by: jenny_xiang Commit-by: jenny_xiang Merged-by: cann-robot Description: ## Description Add English translations for 652 markdown documents: - Repo-level guides: README_en.md, CONTRIBUTING_en.md, SECURITY_en.md, CHANGELOG_en.md, codearts_check_rule_config_en.md - Operator READMEs under activation/, conv/, control/, foreach/, hash/, index/, loss/, matmul/, norm/, optim/, pooling/, quant/, rnn/, vfusion/, etc. - API and design docs under docs/ (aclnn_*, ascendir_*, fusion pass docs) - examples/ and torch_extension/ guides Note: a few cross-reference links whose English targets are not published yet temporarily point to their Chinese counterparts to keep links valid; they will be switched back to the English docs in a follow-up PR after this one is merged. ## Related Issue N/A ## Test - Verified all 1,344 intra-repo markdown links in the added files resolve against master: 0 broken links, 0 missing targets. ## Documentation Update - This PR only adds English documentation files (*_en.md); no existing Chinese documents are modified. ## Type Labels - [ ] Bug fix - [ ] New feature - [ ] Performance optimization - [x] Documentation update - [ ] Other, please describe: ## AI/Agent-Generated Declaration - [x] AI-assisted authoring See merge request: cann/ops-nn!13351 | 18 days ago | |
fix(foreach): ForeachMulScalarList/ForeachDivScalarList aclnn接口支持非连续输出 Co-authored-by: yifangao<gaoyifan20@huawei.com> # message auto-generated for no-merge-commit merge: !12475 merge support-non-contiguous into master fix(foreach): ForeachMulScalarList/ForeachDivScalarList aclnn接口支持非连续输出 Created-by: yifangao Commit-by: yifangao Merged-by: cann-robot Description: ## 描述 <!--在这里详细描述你的改动,包括改动的原因和所采取的方法。--> 将aclnnForeachMulScalarList/aclnnForeachDivScalarList改成手写接口,支持输出非连续 ## 关联的Issue <!-- 如果这个PR是为了解决特定的Issue,请在这里提供Issue链接。例如:关联Issue #000--> https://gitcode.com/cann/ops-nn/issues/8086 ## 测试 <!--描述进行了哪些测试来验证你的改动。--> David冒烟:http://7.215.10.221/scheduler/alljobs?length=100&isalljobs=true&search=20261103_205404729 obp冒烟:http://7.215.10.221/scheduler/alljobs?length=100&isalljobs=true&search=20261104_025754167  ## 文档更新 <!--如果这个PR包含文档的更新,请在这里指出。例如:更新了README.md文件。--> ## 类型标签 <!-- [x] 表示选中 --> - [ ] Bug修复 - [x] 新特性 - [ ] 性能优化 - [x] 文档更新 - [ ] 其他,请描述: ## AI/Agent生成声明 <!-- [x] 表示选中 --> - [ ] AI辅助编写 See merge request: cann/ops-nn!12475 | 18 days ago | |
docs: add English translations for operator READMEs and repo docs Co-authored-by: jenny_xiang<jenny.xiang@huawei.com> # message auto-generated for no-merge-commit merge: !13351 merge docs/add-english-docs into master docs: add English translations for operator READMEs and repo docs Created-by: jenny_xiang Commit-by: jenny_xiang Merged-by: cann-robot Description: ## Description Add English translations for 652 markdown documents: - Repo-level guides: README_en.md, CONTRIBUTING_en.md, SECURITY_en.md, CHANGELOG_en.md, codearts_check_rule_config_en.md - Operator READMEs under activation/, conv/, control/, foreach/, hash/, index/, loss/, matmul/, norm/, optim/, pooling/, quant/, rnn/, vfusion/, etc. - API and design docs under docs/ (aclnn_*, ascendir_*, fusion pass docs) - examples/ and torch_extension/ guides Note: a few cross-reference links whose English targets are not published yet temporarily point to their Chinese counterparts to keep links valid; they will be switched back to the English docs in a follow-up PR after this one is merged. ## Related Issue N/A ## Test - Verified all 1,344 intra-repo markdown links in the added files resolve against master: 0 broken links, 0 missing targets. ## Documentation Update - This PR only adds English documentation files (*_en.md); no existing Chinese documents are modified. ## Type Labels - [ ] Bug fix - [ ] New feature - [ ] Performance optimization - [x] Documentation update - [ ] Other, please describe: ## AI/Agent-Generated Declaration - [x] AI-assisted authoring See merge request: cann/ops-nn!13351 | 18 days ago | |
docs: add English translations for operator READMEs and repo docs Co-authored-by: jenny_xiang<jenny.xiang@huawei.com> # message auto-generated for no-merge-commit merge: !13351 merge docs/add-english-docs into master docs: add English translations for operator READMEs and repo docs Created-by: jenny_xiang Commit-by: jenny_xiang Merged-by: cann-robot Description: ## Description Add English translations for 652 markdown documents: - Repo-level guides: README_en.md, CONTRIBUTING_en.md, SECURITY_en.md, CHANGELOG_en.md, codearts_check_rule_config_en.md - Operator READMEs under activation/, conv/, control/, foreach/, hash/, index/, loss/, matmul/, norm/, optim/, pooling/, quant/, rnn/, vfusion/, etc. - API and design docs under docs/ (aclnn_*, ascendir_*, fusion pass docs) - examples/ and torch_extension/ guides Note: a few cross-reference links whose English targets are not published yet temporarily point to their Chinese counterparts to keep links valid; they will be switched back to the English docs in a follow-up PR after this one is merged. ## Related Issue N/A ## Test - Verified all 1,344 intra-repo markdown links in the added files resolve against master: 0 broken links, 0 missing targets. ## Documentation Update - This PR only adds English documentation files (*_en.md); no existing Chinese documents are modified. ## Type Labels - [ ] Bug fix - [ ] New feature - [ ] Performance optimization - [x] Documentation update - [ ] Other, please describe: ## AI/Agent-Generated Declaration - [x] AI-assisted authoring See merge request: cann/ops-nn!13351 | 18 days ago | |
fix(foreach): 修改aclnnForeachNorm支持非连续输出描述 Co-authored-by: yifangao<gaoyifan20@huawei.com> # message auto-generated for no-merge-commit merge: !13703 merge support-non-contiguous into master fix(foreach): 修改aclnnForeachNorm支持非连续输出描述 Created-by: yifangao Commit-by: yifangao Merged-by: cann-robot Description: ## 描述 <!--在这里详细描述你的改动,包括改动的原因和所采取的方法。--> aclnnForeachNorm "非连续Tensor" 支持声明列由 "x" 改为 "不涉及"(out shape size 一定为1, 必然连续) ## 关联的Issue <!-- 如果这个PR是为了解决特定的Issue,请在这里提供Issue链接。例如:关联Issue #000--> https://gitcode.com/cann/ops-nn/issues/8175 ## 测试 <!--描述进行了哪些测试来验证你的改动。--> ## 文档更新 <!--如果这个PR包含文档的更新,请在这里指出。例如:更新了README.md文件。--> 更新了 foreach/foreach_norm/docs/aclnnForeachNorm.md 及 foreach/foreach_norm/docs/aclnnForeachNorm_en.md ## 类型标签 <!-- [x] 表示选中 --> - [ ] Bug修复 - [ ] 新特性 - [ ] 性能优化 - [x] 文档更新 - [ ] 其他,请描述: ## AI/Agent生成声明 <!-- [x] 表示选中 --> - [ ] AI辅助编写 See merge request: cann/ops-nn!13703 | 17 days ago | |
docs: add English translations for operator READMEs and repo docs Co-authored-by: jenny_xiang<jenny.xiang@huawei.com> # message auto-generated for no-merge-commit merge: !13351 merge docs/add-english-docs into master docs: add English translations for operator READMEs and repo docs Created-by: jenny_xiang Commit-by: jenny_xiang Merged-by: cann-robot Description: ## Description Add English translations for 652 markdown documents: - Repo-level guides: README_en.md, CONTRIBUTING_en.md, SECURITY_en.md, CHANGELOG_en.md, codearts_check_rule_config_en.md - Operator READMEs under activation/, conv/, control/, foreach/, hash/, index/, loss/, matmul/, norm/, optim/, pooling/, quant/, rnn/, vfusion/, etc. - API and design docs under docs/ (aclnn_*, ascendir_*, fusion pass docs) - examples/ and torch_extension/ guides Note: a few cross-reference links whose English targets are not published yet temporarily point to their Chinese counterparts to keep links valid; they will be switched back to the English docs in a follow-up PR after this one is merged. ## Related Issue N/A ## Test - Verified all 1,344 intra-repo markdown links in the added files resolve against master: 0 broken links, 0 missing targets. ## Documentation Update - This PR only adds English documentation files (*_en.md); no existing Chinese documents are modified. ## Type Labels - [ ] Bug fix - [ ] New feature - [ ] Performance optimization - [x] Documentation update - [ ] Other, please describe: ## AI/Agent-Generated Declaration - [x] AI-assisted authoring See merge request: cann/ops-nn!13351 | 18 days ago | |
fix(foreach_pow_scalar): 补齐 arch35 tiling 输出存储容量校验 Co-authored-by: yefeicoding<yefei25@huawei.com> # message auto-generated for no-merge-commit merge: !13528 merge fix/operator-validation-20261030 into master fix(foreach_pow_scalar): 补齐 arch35 tiling 输出存储容量校验 Created-by: yefeicoding Commit-by: yefeicoding Merged-by: cann-robot Description: ## 描述 本 PR 补齐 foreach_pow_scalar arch35 tiling 的输出存储容量校验,并同步相关中英文文档约束。 - foreach/foreach_pow_scalar/op_host/arch35/foreach_pow_scalar_tiling_arch35.cpp:复用 foreach_utils 的 ForeachFlatRegbaseValidation::ValidateHomogeneous<1>,在 tiling 入口校验 x/out 列表长度一致、x 各成员 dtype 一致且受支持、同位置输出 dtype 一致、维度不超过 8 且非负,以及 y[i] storage size >= x[i] storage size;删除与共享校验重复的 x 成员 dtype 循环。 - foreach/foreach_pow_scalar/docs/aclnnForeachPowScalar.md、aclnnForeachPowScalarV2.md:out 约束恢复为“shape size 大于等于入参 x 的 shape size”,与 arch22 已有行为一致。 - foreach/foreach_pow_scalar/docs/aclnnForeachPowScalar_en.md、aclnnForeachPowScalarV2_en.md:同步英文文档——out 非连续标识由 × 改为 √;错误码表对齐中文文档(161002 ACLNN_ERR_PARAM_INVALID,补充 TensorList 长度不一致与 scalar 元素数约束,返回码列表头修正为 Return Code)。 - norm/bn_infer_grad/README.md:参数表中 grads/x_backprop 数据格式去掉“(仅A2/A3)”内联标注,产品差异统一放入约束说明。 - foreach/foreach_pow_scalar/tests/ut/op_host/arch35/test_foreach_pow_scalar_tiling.cpp:扩展 DoCase 支持指定 y storage shape 与预期失败,新增 foreach_pow_scalar_out_storage_smaller。 ## 关联的Issue #8040 ## 测试 - bash build.sh -u --ophost --ops=foreach_pow_scalar --soc=ascend950 --ut_mode=fast → 7/7 PASS(含新增的 y storage 小于 x 的失败用例)。 - 提交前 pre-commit(clang-format、codespell、OAT 等)通过。 - 未上板执行新增包;本次为 tiling 校验、中英文文档与 UT 变更。 ## 文档更新 - foreach/foreach_pow_scalar/docs/aclnnForeachPowScalar.md - foreach/foreach_pow_scalar/docs/aclnnForeachPowScalarV2.md - foreach/foreach_pow_scalar/docs/aclnnForeachPowScalar_en.md - foreach/foreach_pow_scalar/docs/aclnnForeachPowScalarV2_en.md - norm/bn_infer_grad/README.md ## 类型标签 - [x] Bug修复 - [ ] 新特性 - [ ] 性能优化 - [x] 文档更新 - [ ] 其他,请描述: ## AI/Agent生成声明 - [x] AI辅助编写 See merge request: cann/ops-nn!13528 | 16 days ago | |
fix(foreach_pow_scalar): 补齐 arch35 tiling 输出存储容量校验 Co-authored-by: yefeicoding<yefei25@huawei.com> # message auto-generated for no-merge-commit merge: !13528 merge fix/operator-validation-20261030 into master fix(foreach_pow_scalar): 补齐 arch35 tiling 输出存储容量校验 Created-by: yefeicoding Commit-by: yefeicoding Merged-by: cann-robot Description: ## 描述 本 PR 补齐 foreach_pow_scalar arch35 tiling 的输出存储容量校验,并同步相关中英文文档约束。 - foreach/foreach_pow_scalar/op_host/arch35/foreach_pow_scalar_tiling_arch35.cpp:复用 foreach_utils 的 ForeachFlatRegbaseValidation::ValidateHomogeneous<1>,在 tiling 入口校验 x/out 列表长度一致、x 各成员 dtype 一致且受支持、同位置输出 dtype 一致、维度不超过 8 且非负,以及 y[i] storage size >= x[i] storage size;删除与共享校验重复的 x 成员 dtype 循环。 - foreach/foreach_pow_scalar/docs/aclnnForeachPowScalar.md、aclnnForeachPowScalarV2.md:out 约束恢复为“shape size 大于等于入参 x 的 shape size”,与 arch22 已有行为一致。 - foreach/foreach_pow_scalar/docs/aclnnForeachPowScalar_en.md、aclnnForeachPowScalarV2_en.md:同步英文文档——out 非连续标识由 × 改为 √;错误码表对齐中文文档(161002 ACLNN_ERR_PARAM_INVALID,补充 TensorList 长度不一致与 scalar 元素数约束,返回码列表头修正为 Return Code)。 - norm/bn_infer_grad/README.md:参数表中 grads/x_backprop 数据格式去掉“(仅A2/A3)”内联标注,产品差异统一放入约束说明。 - foreach/foreach_pow_scalar/tests/ut/op_host/arch35/test_foreach_pow_scalar_tiling.cpp:扩展 DoCase 支持指定 y storage shape 与预期失败,新增 foreach_pow_scalar_out_storage_smaller。 ## 关联的Issue #8040 ## 测试 - bash build.sh -u --ophost --ops=foreach_pow_scalar --soc=ascend950 --ut_mode=fast → 7/7 PASS(含新增的 y storage 小于 x 的失败用例)。 - 提交前 pre-commit(clang-format、codespell、OAT 等)通过。 - 未上板执行新增包;本次为 tiling 校验、中英文文档与 UT 变更。 ## 文档更新 - foreach/foreach_pow_scalar/docs/aclnnForeachPowScalar.md - foreach/foreach_pow_scalar/docs/aclnnForeachPowScalarV2.md - foreach/foreach_pow_scalar/docs/aclnnForeachPowScalar_en.md - foreach/foreach_pow_scalar/docs/aclnnForeachPowScalarV2_en.md - norm/bn_infer_grad/README.md ## 类型标签 - [x] Bug修复 - [ ] 新特性 - [ ] 性能优化 - [x] 文档更新 - [ ] 其他,请描述: ## AI/Agent生成声明 - [x] AI辅助编写 See merge request: cann/ops-nn!13528 | 16 days ago | |
docs: add English translations for operator READMEs and repo docs Co-authored-by: jenny_xiang<jenny.xiang@huawei.com> # message auto-generated for no-merge-commit merge: !13351 merge docs/add-english-docs into master docs: add English translations for operator READMEs and repo docs Created-by: jenny_xiang Commit-by: jenny_xiang Merged-by: cann-robot Description: ## Description Add English translations for 652 markdown documents: - Repo-level guides: README_en.md, CONTRIBUTING_en.md, SECURITY_en.md, CHANGELOG_en.md, codearts_check_rule_config_en.md - Operator READMEs under activation/, conv/, control/, foreach/, hash/, index/, loss/, matmul/, norm/, optim/, pooling/, quant/, rnn/, vfusion/, etc. - API and design docs under docs/ (aclnn_*, ascendir_*, fusion pass docs) - examples/ and torch_extension/ guides Note: a few cross-reference links whose English targets are not published yet temporarily point to their Chinese counterparts to keep links valid; they will be switched back to the English docs in a follow-up PR after this one is merged. ## Related Issue N/A ## Test - Verified all 1,344 intra-repo markdown links in the added files resolve against master: 0 broken links, 0 missing targets. ## Documentation Update - This PR only adds English documentation files (*_en.md); no existing Chinese documents are modified. ## Type Labels - [ ] Bug fix - [ ] New feature - [ ] Performance optimization - [x] Documentation update - [ ] Other, please describe: ## AI/Agent-Generated Declaration - [x] AI-assisted authoring See merge request: cann/ops-nn!13351 | 18 days ago | |
[Fix] foreach_reciprocal: 开启高精度除法编译选项,消除 fp32 倒数 1 ULP 误差 Co-authored-by: wenqi_wu<wenqiwu0628@163.com> # message auto-generated for no-merge-commit merge: !13740 merge fix/foreach-reciprocal-div-precision into master [Fix] foreach_reciprocal: 开启高精度除法编译选项,消除 fp32 倒数 1 ULP 误差 Created-by: wenqi_wu Commit-by: wenqi_wu Merged-by: cann-robot Description: ## 描述 针对社区 issue #31( torch._foreach_reciprocal fp32 精度失败)定位根因并修复: **根因**:arch35 SIMT 内核以 1.0f / fval 计算倒数,但 foreach_reciprocal 的 kernel 编译单元**未开启高精度编译选项**(同族 foreach_addcdiv_scalar/foreach_addcdiv_scalar_list/foreach_atan/foreach_exp/foreach_expm1/foreach_pow_* 等 8 个算子均已开启)。默认 fast-math 下该除法被编译为**近似倒数(rcp 近似 + 牛顿迭代)**,结果与 IEEE 正确舍入除法(CPU/GPU torch 的 div.rn)相差 ≤1 ULP:相对误差 ~2^-23(1.2e-7),但在输出 3.3e9 量级下 1 ULP = 256,触发 TTK cross_check 的 L1 rmse_ratio 判据放大(rmse_party=0 时分母被 small_value 地板夹住),表现为精度 FAIL。 **修复**:foreach_reciprocal/op_kernel/CMakeLists.txt 的 arch35 编译单元增加 OPTIONS "--cce-use-fast-math=false"(与既有同族范式一致;arch22/910B 路径走共享库 Div API,本次未改动)。 **修复前后对照**(Ascend950PR,device 5,ACLNN 直调 vs CPU IEEE 正确舍入,bit 级 ULP 对比,每例 70893 元素): | 用例 | 修复前 | 修复后 | |---|---|---| | issue 输入域 ±2^-15 | maxULP=1,6510 处不匹配,最大绝对差 128 | **0 ULP / 0 mismatch** | | uniform ±1 | maxULP=1,5947 处不匹配 | 0 ULP | | uniform ±1e30 | maxULP=1,6461 处不匹配 | 0 ULP | | 2^k 邻近对抗集 | maxULP=1,20924 处不匹配 | 0 ULP | | 精确 2 的幂 | 0 ULP | 0 ULP | ## 关联的Issue - #8219 https://gitcode.com/cann/ops-nn/issues/8219 <!-- 创建后回填 --> - 外部问题单:https://gitcode.com/wangyueting/changwei_jiaoyiming/issues/31 ## 测试 - 真机:上述 5 例 ACLNN 探针(修复后)全部 **0 ULP / 0 mismatch / maxAbsDiff=0** - UT:build.sh -u --ops=foreach_reciprocal(默认)与 --soc=ascend950 全绿(op_api/kernel/tiling) - 环境说明:--cce-use-fast-math=false 需 CANN 9.3.0+ 工具链(9.2.0-beta.1 不支持该选项;仓内已有 8 个算子使用该选项,CI 工具链满足) ## 文档更新 - 无 ## 类型标签 - [x] Bug修复 - [ ] 新特性 - [ ] 性能优化 - [ ] 文档更新 - [ ] 其他,请描述: ## AI/Agent生成声明 - AI辅助编写 See merge request: cann/ops-nn!13740 | 16 days ago | |
fix(foreach_round_off_number): validate per-member output shape equality in tiling Co-authored-by: dengguojie<dengguojie@huawei.com> # message auto-generated for no-merge-commit merge: !13787 merge hardening/fron-tiling-shape-guard into master fix(foreach_round_off_number): validate per-member output shape equality in tiling Created-by: dengguojie Commit-by: dengguojie Merged-by: cann-robot Description: ## 描述 foreach 类算子的输入 x 与输出 y 均为 tensor list,逐成员 shape 相等是硬性约束。ForeachRoundOffNumber 的 aclnn 层已有 OP_CHECK_SHAPE_NOT_EQUAL 拦截(161002),但 arch35 tiling 层仅有 x/y 列表**个数**拦截,循环内对 x 逐成员取 shape 后无输出 shape 对照——GE 图路直达 tiling 的场景(输出 shape 旁路 Host InferShape 的 y=x 拷贝推导)下,逐成员失配输入仍可下发 kernel(tensorElements 按输入 numel 填充而输出缓冲区为另一 shape)。 本 PR 在 tiling 成员循环内补逐成员输出 shape 相等拦截,对齐族内惯例: - foreach_sub_list(arch35 tiling):GetOutputShape(i) 逐成员输出 shape 与输入 StorageShape 相等校验,失配即 GRAPH_FAILED; - foreach_minimum_list(arch35 tiling):逐成员相等校验,日志携带成员索引与两侧 shape 值。 修复形态:输出侧 context->GetOutputShape(i);x[i] 与 y[i] 的 StorageShape 不等即拒绝,日志含成员索引与两侧 shape 值(x[%lu] and y[%lu] must have the same storage shape, but got %s and %s)。 修复项映射: | 修复项 | 内容 | |---|---| | tiling 逐成员 shape 相等拦截 | op_host/arch35/foreach_round_off_number_tiling.cpp 成员循环内新增 5 行校验(GetOutputShape(i) 空检 + StorageShape 相等校验 + GRAPH_FAILED) | | tiling UT 防复发用例 | tests/ut/op_host/arch35/test_foreach_round_off_number_tiling.cpp 新增 foreach_round_off_number_shape_mismatch_rejected:等长列表 member 0 匹配、member 1 失配(x=(2,3) vs y=(2,4))→ GRAPH_FAILED | ## 关联的Issue Closes #8256 ## 测试 - **缺陷复现**:新增 UT 用例在修复前实测 tiling 返回 GRAPH_SUCCESS(17/18 仅新用例 FAIL),修复后通过; - **UT 全量**:build.sh -u --soc=ascend950 后三套件 42/42 通过(op_host 18 + op_api 24 + op_graph 0,--gtest_list_tests 逐套对账相等);拒绝点日志实证:单跑新用例输出 tiling.cpp:140 x[1] and y[1] must have the same storage shape, but got [2, 3] and [2, 4](成员索引 1 触发,逐成员语义); - **正常路径行为等价**:kernel 路冒烟 1 条 PASS(BINARY_MATCH / tiling_key=0 / 输入输出尺寸与基线一致);kernel 产物 .o ×4 md5 与基线逐字节一致(op_kernel 零漂移); - **定向真机回归**:kernel 路 x/y 异 shape 用例(x=(2,3)、y=(2,4)、同个数)被 tiling 拒绝(OPTILING_FAILURE,日志命中新校验文本)。 ## 文档更新 无(tiling 层校验不改变算子接口契约;aclnn 层 161002 拦截与文档错误码表既有形态不变)。 ## 类型标签 - [x] Bug修复 - [ ] 新功能 - [ ] 文档更新 See merge request: cann/ops-nn!13787 | 16 days ago | |
fix/foreach_sigmoid_subscalar_report Co-authored-by: liuchuangdev<liuchuang51@huawei.com> # message auto-generated for no-merge-commit merge: !12554 merge fix/foreach_sigmoid_subscalar_report into master fix/foreach_sigmoid_subscalar_report Created-by: liuchuangdev Commit-by: liuchuangdev Merged-by: cann-robot Description: ## 描述 本次针对三个算子做质量加固与缺陷修复: **1. FusedBiasLeakyReluGrad(activation)** - tiling 补齐 format(仅 ND)/ 属性范围(negative_slope、scale ∈ [-1e38, 1e38])/ 输入广播兼容 / rank≤8 校验; InferShape 增加「覆盖前快照声明 shape、覆盖后与广播结果比对」的 shape 契约校验。 - 修复 kernel nddmaParams_ 未初始化读:MultiCopyParams 声明补 = {},避免 DataCopy 三参重载无条件读取未初始化的 constantValue(mSAN initcheck UB 读)。 - 适配 ascend350(def/kernel/CMake)。 - golden:补充 TTK TestSpec(__spec__ + legacy __golden__ + golden 手写 numpy 公式 + third_party(torch) + tolerance(cross_check/L1)),删除重复的 cpu_golden.py,保留 GPU 交叉比对 CLI。 **2. ForeachSigmoid(foreach)** - 补齐 arch35 tiling 校验(x/y 数量、dtype、shape、8 维、元素数)与 shape 契约;修正实例数窄化截断绕过上限检查的问题。 - 修正异常套件非 ND 格式 / 非连续 stride / input_dtypes 扁平写法导致的 dtype 拒绝失效。 - 接口签名 out 保持非 const(回退),文档同步。 **3. ForeachSubScalar(foreach)** - 修复 scalar 越界读:scalar 输入索引按 GetInstanceStart() + GetInstanceNum() 计算;补齐 scalar dtype 与 x 的 def 映射校验(InferDataType4ForeachSubScalar)与 shape 契约。 - kernel SIMT 逐 tensor 分包,修正 tilingGm 指针类型。 **通用清理**:三算子删除 validation-report、ST deliverable 报告及 golden README/重复基线(golden_origin.py),保留 golden 判据、代码与文档改动;无实质内容的纯格式改动已回退。 ## 关联的Issue [#8075](https://gitcode.com/cann/ops-nn/issues/8075) ## 测试 - 门槛用例、白盒用例、冒烟测试通过 ## 文档更新 - 更新 activation/fused_bias_leaky_relu_grad/README.md(补充 ND 格式、属性取值范围约束说明)。 - 更新 foreach/foreach_sigmoid/docs/aclnnForeachSigmoid.md(接口签名 out 去 const)。 - 更新 foreach/foreach_sub_scalar/docs/aclnnForeachSubScalar*.md(scalar dtype 映射、shape 契约说明)。 ## 类型标签 <!-- [x] 表示选中 --> - [x] Bug修复 - [ ] 新特性 - [ ] 性能优化 - [x] 文档更新 - [ ] 其他,请描述: ## AI/Agent生成声明 <!-- [x] 表示选中 --> - [x] AI辅助编写 See merge request: cann/ops-nn!12554 | 18 days ago | |
docs: add English translations for operator READMEs and repo docs Co-authored-by: jenny_xiang<jenny.xiang@huawei.com> # message auto-generated for no-merge-commit merge: !13351 merge docs/add-english-docs into master docs: add English translations for operator READMEs and repo docs Created-by: jenny_xiang Commit-by: jenny_xiang Merged-by: cann-robot Description: ## Description Add English translations for 652 markdown documents: - Repo-level guides: README_en.md, CONTRIBUTING_en.md, SECURITY_en.md, CHANGELOG_en.md, codearts_check_rule_config_en.md - Operator READMEs under activation/, conv/, control/, foreach/, hash/, index/, loss/, matmul/, norm/, optim/, pooling/, quant/, rnn/, vfusion/, etc. - API and design docs under docs/ (aclnn_*, ascendir_*, fusion pass docs) - examples/ and torch_extension/ guides Note: a few cross-reference links whose English targets are not published yet temporarily point to their Chinese counterparts to keep links valid; they will be switched back to the English docs in a follow-up PR after this one is merged. ## Related Issue N/A ## Test - Verified all 1,344 intra-repo markdown links in the added files resolve against master: 0 broken links, 0 missing targets. ## Documentation Update - This PR only adds English documentation files (*_en.md); no existing Chinese documents are modified. ## Type Labels - [ ] Bug fix - [ ] New feature - [ ] Performance optimization - [x] Documentation update - [ ] Other, please describe: ## AI/Agent-Generated Declaration - [x] AI-assisted authoring See merge request: cann/ops-nn!13351 | 18 days ago | |
docs: add English translations for operator READMEs and repo docs Co-authored-by: jenny_xiang<jenny.xiang@huawei.com> # message auto-generated for no-merge-commit merge: !13351 merge docs/add-english-docs into master docs: add English translations for operator READMEs and repo docs Created-by: jenny_xiang Commit-by: jenny_xiang Merged-by: cann-robot Description: ## Description Add English translations for 652 markdown documents: - Repo-level guides: README_en.md, CONTRIBUTING_en.md, SECURITY_en.md, CHANGELOG_en.md, codearts_check_rule_config_en.md - Operator READMEs under activation/, conv/, control/, foreach/, hash/, index/, loss/, matmul/, norm/, optim/, pooling/, quant/, rnn/, vfusion/, etc. - API and design docs under docs/ (aclnn_*, ascendir_*, fusion pass docs) - examples/ and torch_extension/ guides Note: a few cross-reference links whose English targets are not published yet temporarily point to their Chinese counterparts to keep links valid; they will be switched back to the English docs in a follow-up PR after this one is merged. ## Related Issue N/A ## Test - Verified all 1,344 intra-repo markdown links in the added files resolve against master: 0 broken links, 0 missing targets. ## Documentation Update - This PR only adds English documentation files (*_en.md); no existing Chinese documents are modified. ## Type Labels - [ ] Bug fix - [ ] New feature - [ ] Performance optimization - [x] Documentation update - [ ] Other, please describe: ## AI/Agent-Generated Declaration - [x] AI-assisted authoring See merge request: cann/ops-nn!13351 | 18 days ago | |
fix(foreach_pow_scalar): 补齐 arch35 tiling 输出存储容量校验 Co-authored-by: yefeicoding<yefei25@huawei.com> # message auto-generated for no-merge-commit merge: !13528 merge fix/operator-validation-20261030 into master fix(foreach_pow_scalar): 补齐 arch35 tiling 输出存储容量校验 Created-by: yefeicoding Commit-by: yefeicoding Merged-by: cann-robot Description: ## 描述 本 PR 补齐 foreach_pow_scalar arch35 tiling 的输出存储容量校验,并同步相关中英文文档约束。 - foreach/foreach_pow_scalar/op_host/arch35/foreach_pow_scalar_tiling_arch35.cpp:复用 foreach_utils 的 ForeachFlatRegbaseValidation::ValidateHomogeneous<1>,在 tiling 入口校验 x/out 列表长度一致、x 各成员 dtype 一致且受支持、同位置输出 dtype 一致、维度不超过 8 且非负,以及 y[i] storage size >= x[i] storage size;删除与共享校验重复的 x 成员 dtype 循环。 - foreach/foreach_pow_scalar/docs/aclnnForeachPowScalar.md、aclnnForeachPowScalarV2.md:out 约束恢复为“shape size 大于等于入参 x 的 shape size”,与 arch22 已有行为一致。 - foreach/foreach_pow_scalar/docs/aclnnForeachPowScalar_en.md、aclnnForeachPowScalarV2_en.md:同步英文文档——out 非连续标识由 × 改为 √;错误码表对齐中文文档(161002 ACLNN_ERR_PARAM_INVALID,补充 TensorList 长度不一致与 scalar 元素数约束,返回码列表头修正为 Return Code)。 - norm/bn_infer_grad/README.md:参数表中 grads/x_backprop 数据格式去掉“(仅A2/A3)”内联标注,产品差异统一放入约束说明。 - foreach/foreach_pow_scalar/tests/ut/op_host/arch35/test_foreach_pow_scalar_tiling.cpp:扩展 DoCase 支持指定 y storage shape 与预期失败,新增 foreach_pow_scalar_out_storage_smaller。 ## 关联的Issue #8040 ## 测试 - bash build.sh -u --ophost --ops=foreach_pow_scalar --soc=ascend950 --ut_mode=fast → 7/7 PASS(含新增的 y storage 小于 x 的失败用例)。 - 提交前 pre-commit(clang-format、codespell、OAT 等)通过。 - 未上板执行新增包;本次为 tiling 校验、中英文文档与 UT 变更。 ## 文档更新 - foreach/foreach_pow_scalar/docs/aclnnForeachPowScalar.md - foreach/foreach_pow_scalar/docs/aclnnForeachPowScalarV2.md - foreach/foreach_pow_scalar/docs/aclnnForeachPowScalar_en.md - foreach/foreach_pow_scalar/docs/aclnnForeachPowScalarV2_en.md - norm/bn_infer_grad/README.md ## 类型标签 - [x] Bug修复 - [ ] 新特性 - [ ] 性能优化 - [x] 文档更新 - [ ] 其他,请描述: ## AI/Agent生成声明 - [x] AI辅助编写 See merge request: cann/ops-nn!13528 | 16 days ago | |
docs: add English translations for operator READMEs and repo docs Co-authored-by: jenny_xiang<jenny.xiang@huawei.com> # message auto-generated for no-merge-commit merge: !13351 merge docs/add-english-docs into master docs: add English translations for operator READMEs and repo docs Created-by: jenny_xiang Commit-by: jenny_xiang Merged-by: cann-robot Description: ## Description Add English translations for 652 markdown documents: - Repo-level guides: README_en.md, CONTRIBUTING_en.md, SECURITY_en.md, CHANGELOG_en.md, codearts_check_rule_config_en.md - Operator READMEs under activation/, conv/, control/, foreach/, hash/, index/, loss/, matmul/, norm/, optim/, pooling/, quant/, rnn/, vfusion/, etc. - API and design docs under docs/ (aclnn_*, ascendir_*, fusion pass docs) - examples/ and torch_extension/ guides Note: a few cross-reference links whose English targets are not published yet temporarily point to their Chinese counterparts to keep links valid; they will be switched back to the English docs in a follow-up PR after this one is merged. ## Related Issue N/A ## Test - Verified all 1,344 intra-repo markdown links in the added files resolve against master: 0 broken links, 0 missing targets. ## Documentation Update - This PR only adds English documentation files (*_en.md); no existing Chinese documents are modified. ## Type Labels - [ ] Bug fix - [ ] New feature - [ ] Performance optimization - [x] Documentation update - [ ] Other, please describe: ## AI/Agent-Generated Declaration - [x] AI-assisted authoring See merge request: cann/ops-nn!13351 | 18 days ago | |
modified md files Co-authored-by: duhuiping<duhuiping@h-partners.com> # message auto-generated for no-merge-commit merge: !13817 merge master into master modified md files Created-by: gitee-duhuiping Commit-by: duhuiping Merged-by: cann-robot Description: ## 描述 - Changed the product name. - Adjust the error code table and correct the value of rowspand. ## 关联的Issue none ## 测试 Only involves updating the MD document description, does not involve testing. ## 文档更新 md files ## 类型标签 <!-- [x] 表示选中 --> - [ ] Bug修复 - [ ] 新特性 - [ ] 性能优化 - [x] 文档更新 - [ ] 其他,请描述: See merge request: cann/ops-nn!13817 | 13 days ago | |
docs: add English translations for operator READMEs and repo docs Co-authored-by: jenny_xiang<jenny.xiang@huawei.com> # message auto-generated for no-merge-commit merge: !13351 merge docs/add-english-docs into master docs: add English translations for operator READMEs and repo docs Created-by: jenny_xiang Commit-by: jenny_xiang Merged-by: cann-robot Description: ## Description Add English translations for 652 markdown documents: - Repo-level guides: README_en.md, CONTRIBUTING_en.md, SECURITY_en.md, CHANGELOG_en.md, codearts_check_rule_config_en.md - Operator READMEs under activation/, conv/, control/, foreach/, hash/, index/, loss/, matmul/, norm/, optim/, pooling/, quant/, rnn/, vfusion/, etc. - API and design docs under docs/ (aclnn_*, ascendir_*, fusion pass docs) - examples/ and torch_extension/ guides Note: a few cross-reference links whose English targets are not published yet temporarily point to their Chinese counterparts to keep links valid; they will be switched back to the English docs in a follow-up PR after this one is merged. ## Related Issue N/A ## Test - Verified all 1,344 intra-repo markdown links in the added files resolve against master: 0 broken links, 0 missing targets. ## Documentation Update - This PR only adds English documentation files (*_en.md); no existing Chinese documents are modified. ## Type Labels - [ ] Bug fix - [ ] New feature - [ ] Performance optimization - [x] Documentation update - [ ] Other, please describe: ## AI/Agent-Generated Declaration - [x] AI-assisted authoring See merge request: cann/ops-nn!13351 | 18 days ago | |
fix/foreach_sigmoid_subscalar_report Co-authored-by: liuchuangdev<liuchuang51@huawei.com> # message auto-generated for no-merge-commit merge: !12554 merge fix/foreach_sigmoid_subscalar_report into master fix/foreach_sigmoid_subscalar_report Created-by: liuchuangdev Commit-by: liuchuangdev Merged-by: cann-robot Description: ## 描述 本次针对三个算子做质量加固与缺陷修复: **1. FusedBiasLeakyReluGrad(activation)** - tiling 补齐 format(仅 ND)/ 属性范围(negative_slope、scale ∈ [-1e38, 1e38])/ 输入广播兼容 / rank≤8 校验; InferShape 增加「覆盖前快照声明 shape、覆盖后与广播结果比对」的 shape 契约校验。 - 修复 kernel nddmaParams_ 未初始化读:MultiCopyParams 声明补 = {},避免 DataCopy 三参重载无条件读取未初始化的 constantValue(mSAN initcheck UB 读)。 - 适配 ascend350(def/kernel/CMake)。 - golden:补充 TTK TestSpec(__spec__ + legacy __golden__ + golden 手写 numpy 公式 + third_party(torch) + tolerance(cross_check/L1)),删除重复的 cpu_golden.py,保留 GPU 交叉比对 CLI。 **2. ForeachSigmoid(foreach)** - 补齐 arch35 tiling 校验(x/y 数量、dtype、shape、8 维、元素数)与 shape 契约;修正实例数窄化截断绕过上限检查的问题。 - 修正异常套件非 ND 格式 / 非连续 stride / input_dtypes 扁平写法导致的 dtype 拒绝失效。 - 接口签名 out 保持非 const(回退),文档同步。 **3. ForeachSubScalar(foreach)** - 修复 scalar 越界读:scalar 输入索引按 GetInstanceStart() + GetInstanceNum() 计算;补齐 scalar dtype 与 x 的 def 映射校验(InferDataType4ForeachSubScalar)与 shape 契约。 - kernel SIMT 逐 tensor 分包,修正 tilingGm 指针类型。 **通用清理**:三算子删除 validation-report、ST deliverable 报告及 golden README/重复基线(golden_origin.py),保留 golden 判据、代码与文档改动;无实质内容的纯格式改动已回退。 ## 关联的Issue [#8075](https://gitcode.com/cann/ops-nn/issues/8075) ## 测试 - 门槛用例、白盒用例、冒烟测试通过 ## 文档更新 - 更新 activation/fused_bias_leaky_relu_grad/README.md(补充 ND 格式、属性取值范围约束说明)。 - 更新 foreach/foreach_sigmoid/docs/aclnnForeachSigmoid.md(接口签名 out 去 const)。 - 更新 foreach/foreach_sub_scalar/docs/aclnnForeachSubScalar*.md(scalar dtype 映射、shape 契约说明)。 ## 类型标签 <!-- [x] 表示选中 --> - [x] Bug修复 - [ ] 新特性 - [ ] 性能优化 - [x] 文档更新 - [ ] 其他,请描述: ## AI/Agent生成声明 <!-- [x] 表示选中 --> - [x] AI辅助编写 See merge request: cann/ops-nn!12554 | 18 days ago | |
docs: add English translations for operator READMEs and repo docs Co-authored-by: jenny_xiang<jenny.xiang@huawei.com> # message auto-generated for no-merge-commit merge: !13351 merge docs/add-english-docs into master docs: add English translations for operator READMEs and repo docs Created-by: jenny_xiang Commit-by: jenny_xiang Merged-by: cann-robot Description: ## Description Add English translations for 652 markdown documents: - Repo-level guides: README_en.md, CONTRIBUTING_en.md, SECURITY_en.md, CHANGELOG_en.md, codearts_check_rule_config_en.md - Operator READMEs under activation/, conv/, control/, foreach/, hash/, index/, loss/, matmul/, norm/, optim/, pooling/, quant/, rnn/, vfusion/, etc. - API and design docs under docs/ (aclnn_*, ascendir_*, fusion pass docs) - examples/ and torch_extension/ guides Note: a few cross-reference links whose English targets are not published yet temporarily point to their Chinese counterparts to keep links valid; they will be switched back to the English docs in a follow-up PR after this one is merged. ## Related Issue N/A ## Test - Verified all 1,344 intra-repo markdown links in the added files resolve against master: 0 broken links, 0 missing targets. ## Documentation Update - This PR only adds English documentation files (*_en.md); no existing Chinese documents are modified. ## Type Labels - [ ] Bug fix - [ ] New feature - [ ] Performance optimization - [x] Documentation update - [ ] Other, please describe: ## AI/Agent-Generated Declaration - [x] AI-assisted authoring See merge request: cann/ops-nn!13351 | 18 days ago | |
docs: add English translations for operator READMEs and repo docs Co-authored-by: jenny_xiang<jenny.xiang@huawei.com> # message auto-generated for no-merge-commit merge: !13351 merge docs/add-english-docs into master docs: add English translations for operator READMEs and repo docs Created-by: jenny_xiang Commit-by: jenny_xiang Merged-by: cann-robot Description: ## Description Add English translations for 652 markdown documents: - Repo-level guides: README_en.md, CONTRIBUTING_en.md, SECURITY_en.md, CHANGELOG_en.md, codearts_check_rule_config_en.md - Operator READMEs under activation/, conv/, control/, foreach/, hash/, index/, loss/, matmul/, norm/, optim/, pooling/, quant/, rnn/, vfusion/, etc. - API and design docs under docs/ (aclnn_*, ascendir_*, fusion pass docs) - examples/ and torch_extension/ guides Note: a few cross-reference links whose English targets are not published yet temporarily point to their Chinese counterparts to keep links valid; they will be switched back to the English docs in a follow-up PR after this one is merged. ## Related Issue N/A ## Test - Verified all 1,344 intra-repo markdown links in the added files resolve against master: 0 broken links, 0 missing targets. ## Documentation Update - This PR only adds English documentation files (*_en.md); no existing Chinese documents are modified. ## Type Labels - [ ] Bug fix - [ ] New feature - [ ] Performance optimization - [x] Documentation update - [ ] Other, please describe: ## AI/Agent-Generated Declaration - [x] AI-assisted authoring See merge request: cann/ops-nn!13351 | 18 days ago | |
docs: add English translations for operator READMEs and repo docs Co-authored-by: jenny_xiang<jenny.xiang@huawei.com> # message auto-generated for no-merge-commit merge: !13351 merge docs/add-english-docs into master docs: add English translations for operator READMEs and repo docs Created-by: jenny_xiang Commit-by: jenny_xiang Merged-by: cann-robot Description: ## Description Add English translations for 652 markdown documents: - Repo-level guides: README_en.md, CONTRIBUTING_en.md, SECURITY_en.md, CHANGELOG_en.md, codearts_check_rule_config_en.md - Operator READMEs under activation/, conv/, control/, foreach/, hash/, index/, loss/, matmul/, norm/, optim/, pooling/, quant/, rnn/, vfusion/, etc. - API and design docs under docs/ (aclnn_*, ascendir_*, fusion pass docs) - examples/ and torch_extension/ guides Note: a few cross-reference links whose English targets are not published yet temporarily point to their Chinese counterparts to keep links valid; they will be switched back to the English docs in a follow-up PR after this one is merged. ## Related Issue N/A ## Test - Verified all 1,344 intra-repo markdown links in the added files resolve against master: 0 broken links, 0 missing targets. ## Documentation Update - This PR only adds English documentation files (*_en.md); no existing Chinese documents are modified. ## Type Labels - [ ] Bug fix - [ ] New feature - [ ] Performance optimization - [x] Documentation update - [ ] Other, please describe: ## AI/Agent-Generated Declaration - [x] AI-assisted authoring See merge request: cann/ops-nn!13351 | 18 days ago | |
docs: add English translations for operator READMEs and repo docs Co-authored-by: jenny_xiang<jenny.xiang@huawei.com> # message auto-generated for no-merge-commit merge: !13351 merge docs/add-english-docs into master docs: add English translations for operator READMEs and repo docs Created-by: jenny_xiang Commit-by: jenny_xiang Merged-by: cann-robot Description: ## Description Add English translations for 652 markdown documents: - Repo-level guides: README_en.md, CONTRIBUTING_en.md, SECURITY_en.md, CHANGELOG_en.md, codearts_check_rule_config_en.md - Operator READMEs under activation/, conv/, control/, foreach/, hash/, index/, loss/, matmul/, norm/, optim/, pooling/, quant/, rnn/, vfusion/, etc. - API and design docs under docs/ (aclnn_*, ascendir_*, fusion pass docs) - examples/ and torch_extension/ guides Note: a few cross-reference links whose English targets are not published yet temporarily point to their Chinese counterparts to keep links valid; they will be switched back to the English docs in a follow-up PR after this one is merged. ## Related Issue N/A ## Test - Verified all 1,344 intra-repo markdown links in the added files resolve against master: 0 broken links, 0 missing targets. ## Documentation Update - This PR only adds English documentation files (*_en.md); no existing Chinese documents are modified. ## Type Labels - [ ] Bug fix - [ ] New feature - [ ] Performance optimization - [x] Documentation update - [ ] Other, please describe: ## AI/Agent-Generated Declaration - [x] AI-assisted authoring See merge request: cann/ops-nn!13351 | 18 days ago | |
fix(foreach_pow_scalar): 补齐 arch35 tiling 输出存储容量校验 Co-authored-by: yefeicoding<yefei25@huawei.com> # message auto-generated for no-merge-commit merge: !13528 merge fix/operator-validation-20261030 into master fix(foreach_pow_scalar): 补齐 arch35 tiling 输出存储容量校验 Created-by: yefeicoding Commit-by: yefeicoding Merged-by: cann-robot Description: ## 描述 本 PR 补齐 foreach_pow_scalar arch35 tiling 的输出存储容量校验,并同步相关中英文文档约束。 - foreach/foreach_pow_scalar/op_host/arch35/foreach_pow_scalar_tiling_arch35.cpp:复用 foreach_utils 的 ForeachFlatRegbaseValidation::ValidateHomogeneous<1>,在 tiling 入口校验 x/out 列表长度一致、x 各成员 dtype 一致且受支持、同位置输出 dtype 一致、维度不超过 8 且非负,以及 y[i] storage size >= x[i] storage size;删除与共享校验重复的 x 成员 dtype 循环。 - foreach/foreach_pow_scalar/docs/aclnnForeachPowScalar.md、aclnnForeachPowScalarV2.md:out 约束恢复为“shape size 大于等于入参 x 的 shape size”,与 arch22 已有行为一致。 - foreach/foreach_pow_scalar/docs/aclnnForeachPowScalar_en.md、aclnnForeachPowScalarV2_en.md:同步英文文档——out 非连续标识由 × 改为 √;错误码表对齐中文文档(161002 ACLNN_ERR_PARAM_INVALID,补充 TensorList 长度不一致与 scalar 元素数约束,返回码列表头修正为 Return Code)。 - norm/bn_infer_grad/README.md:参数表中 grads/x_backprop 数据格式去掉“(仅A2/A3)”内联标注,产品差异统一放入约束说明。 - foreach/foreach_pow_scalar/tests/ut/op_host/arch35/test_foreach_pow_scalar_tiling.cpp:扩展 DoCase 支持指定 y storage shape 与预期失败,新增 foreach_pow_scalar_out_storage_smaller。 ## 关联的Issue #8040 ## 测试 - bash build.sh -u --ophost --ops=foreach_pow_scalar --soc=ascend950 --ut_mode=fast → 7/7 PASS(含新增的 y storage 小于 x 的失败用例)。 - 提交前 pre-commit(clang-format、codespell、OAT 等)通过。 - 未上板执行新增包;本次为 tiling 校验、中英文文档与 UT 变更。 ## 文档更新 - foreach/foreach_pow_scalar/docs/aclnnForeachPowScalar.md - foreach/foreach_pow_scalar/docs/aclnnForeachPowScalarV2.md - foreach/foreach_pow_scalar/docs/aclnnForeachPowScalar_en.md - foreach/foreach_pow_scalar/docs/aclnnForeachPowScalarV2_en.md - norm/bn_infer_grad/README.md ## 类型标签 - [x] Bug修复 - [ ] 新特性 - [ ] 性能优化 - [x] 文档更新 - [ ] 其他,请描述: ## AI/Agent生成声明 - [x] AI辅助编写 See merge request: cann/ops-nn!13528 | 16 days ago | |
foreachzeroinplace加固 Co-authored-by: liushaxiangdong<jinpeng11@huawei.com> # message auto-generated for no-merge-commit merge: !13260 merge feat/foreach-zero-inplace-ref-output into master foreachzeroinplace加固 Created-by: liushaxiangdong Commit-by: liushaxiangdong Merged-by: cann-robot Description: ## 描述 <!--在这里详细描述你的改动,包括改动的原因和所采取的方法。--> foreachzeroinplace的950版本质量优化 ## 关联的Issue <!-- 如果这个PR是为了解决特定的Issue,请在这里提供Issue链接。例如:关联Issue #000--> ## 测试 <!--描述进行了哪些测试来验证你的改动。--> ## 文档更新 <!--如果这个PR包含文档的更新,请在这里指出。例如:更新了README.md文件。--> ## 类型标签 <!-- [x] 表示选中 --> - [ ] Bug修复 - [x ] 新特性 - [ ] 性能优化 - [x ] 文档更新 - [ ] 其他,请描述: ## AI/Agent生成声明 <!-- [x] 表示选中 --> - [ x] AI辅助编写 See merge request: cann/ops-nn!13260 | 16 days ago | |
License Change Split2 Co-authored-by: huohuo_wy<wangyan389@huawei.com> # message auto-generated for no-merge-commit merge: !372 merge spilitLicense3 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!372 | 11 months ago |
| Files | Last commit | Last update |
|---|---|---|
| 18 days ago | ||
| 18 days ago | ||
| 18 days ago | ||
| 16 days ago | ||
| 18 days ago | ||
| 13 days ago | ||
| 18 days ago | ||
| 18 days ago | ||
| 18 days ago | ||
| 12 days ago | ||
| 18 days ago | ||
| 16 days ago | ||
| 18 days ago | ||
| 17 days ago | ||
| 17 days ago | ||
| 18 days ago | ||
| 16 days ago | ||
| 16 days ago | ||
| 18 days ago | ||
| 17 days ago | ||
| 18 days ago | ||
| 13 days ago | ||
| 18 days ago | ||
| 13 days ago | ||
| 15 days ago | ||
| 18 days ago | ||
| 13 days ago | ||
| 18 days ago | ||
| 17 days ago | ||
| 18 days ago | ||
| 18 days ago | ||
| 16 days ago | ||
| 13 days ago | ||
| 18 days ago | ||
| 18 days ago | ||
| 13 days ago | ||
| 18 days ago | ||
| 18 days ago | ||
| 18 days ago | ||
| 18 days ago | ||
| 13 days ago | ||
| 18 days ago | ||
| 18 days ago | ||
| 18 days ago | ||
| 18 days ago | ||
| 18 days ago | ||
| 18 days ago | ||
| 17 days ago | ||
| 18 days ago | ||
| 16 days ago | ||
| 16 days ago | ||
| 18 days ago | ||
| 16 days ago | ||
| 16 days ago | ||
| 18 days ago | ||
| 18 days ago | ||
| 18 days ago | ||
| 16 days ago | ||
| 18 days ago | ||
| 13 days ago | ||
| 18 days ago | ||
| 18 days ago | ||
| 18 days ago | ||
| 18 days ago | ||
| 18 days ago | ||
| 18 days ago | ||
| 16 days ago | ||
| 16 days ago | ||
| 11 months ago |