| 新增Ascend C实现的reduce_std_v2算子 Co-authored-by: tieyutong<tieyutong@huawei.com> # message auto-generated for no-merge-commit merge: !3126 merge upload-reduce-std-v2-20260604 into master 新增Ascend C实现的reduce_std_v2算子 Created-by: tieyutong Commit-by: tieyutong Merged-by: cann-robot Description: ## 描述 本 PR 新增 experimental/math/reduce_std_v2路径下ReduceStdV2算子的Ascend C实现与配套工程文件。 主要改动包括: - 新增 ReduceStdV2 L0 op_api、op_host、op_kernel、op_graph 相关文件。 - 支持 dim、correction、keepdim 参数校验与 shape 推导。 - 支持空 tensor、0 维 tensor、shapeProd <= correction 等特殊场景处理。 - 910B 系列通过 ReduceMean + Expand + ReduceStdWithMean + Cast + ViewCopy 组合路径实现。 - arch35 路径保留 ReduceStdV2 AICore kernel、tiling 与 ascend950 配置。 - 新增 op_host / op_api UT,覆盖参数校验、shape 推导和接口构图路径。 ## 关联的Issue https://gitcode.com/cann/ops-math/issues/1837 ## 测试 已完成以下验证: 套件 用例数 结果 ━━━━━━━━━━━━━━━━━━━━━━━━━━ Accu_Generalization 2103 Pass ────────────────────────── Accu_RL 3 Pass ────────────────────────── Accu_pangu 3 Pass ────────────────────────── Special 103 Pass ────────────────────────── Abnormal 3 Pass,3 条均为预期错误匹配 ────────────────────────── Sanitizer_Generalization 180 Pass ────────────────────────── Perf_Generalization 6 Pass CI/工程验证: 项目 结果 ━━━━━━━━━━━━━━━━━━━━━━━━━━━ 环境检查 Pass ─────────────────────────── experimental package 编译 Pass ─────────────────────────── custom package 安装 Pass ─────────────────────────── op_host UT Pass,1 test ─────────────────────────── op_api UT Pass,43 tests ─────────────────────────── op_graph UT Pass,0 tests ─────────────────────────── NPU 示例运行 Pass ## 文档更新 已更新/新增以下文档: - experimental/math/reduce_std_v2/README.md ## 类型标签 - [ ] Bug修复 - [x] 新特性 - [ ] 性能优化 - [x] 文档更新 - [ ] 其他,请描述: See merge request: cann/ops-math!3126 | 4 months ago |
| fix(experimental/reduce_std_v2): 空tensor及corner case路径workspaceSize未正确获取 Co-authored-by: andong_hw<andong2@huawei.com> # message auto-generated for no-merge-commit merge: !4546 merge fix-std-workspace-size-exp into master fix(experimental/reduce_std_v2): 空tensor及corner case路径workspaceSize未正确获取 Created-by: andong_hw Commit-by: andong_hw Merged-by: cann-robot Description: Closes #2566 ## 问题 experimental/aclnnStd 的 GetWorkspaceSize 中,空tensor及 shapeProd<=correction 等 corner case 路径调用了 CheckFillScalarShapeStdAndVar,该函数内部使用 AllocIntArray/l0op::Fill/l0op::ViewCopy,均需要 workspace 中转,但后续误写 *workspaceSize = 0,导致 workspace 不足。 ## 修复 将 *workspaceSize = 0 改为 *workspaceSize = uniqueExecutor->GetWorkspaceSize()。 ## 涉及文件 - experimental/math/reduce_std_v2/op_api/aclnn_std.cpp (3处) ## 备注 pre-commit clang-format 对全文件做了格式化,格式化变更为附带影响。 See merge request: cann/ops-math!4546 | 2 months ago |
| 新增Ascend C实现的reduce_std_v2算子 Co-authored-by: tieyutong<tieyutong@huawei.com> # message auto-generated for no-merge-commit merge: !3126 merge upload-reduce-std-v2-20260604 into master 新增Ascend C实现的reduce_std_v2算子 Created-by: tieyutong Commit-by: tieyutong Merged-by: cann-robot Description: ## 描述 本 PR 新增 experimental/math/reduce_std_v2路径下ReduceStdV2算子的Ascend C实现与配套工程文件。 主要改动包括: - 新增 ReduceStdV2 L0 op_api、op_host、op_kernel、op_graph 相关文件。 - 支持 dim、correction、keepdim 参数校验与 shape 推导。 - 支持空 tensor、0 维 tensor、shapeProd <= correction 等特殊场景处理。 - 910B 系列通过 ReduceMean + Expand + ReduceStdWithMean + Cast + ViewCopy 组合路径实现。 - arch35 路径保留 ReduceStdV2 AICore kernel、tiling 与 ascend950 配置。 - 新增 op_host / op_api UT,覆盖参数校验、shape 推导和接口构图路径。 ## 关联的Issue https://gitcode.com/cann/ops-math/issues/1837 ## 测试 已完成以下验证: 套件 用例数 结果 ━━━━━━━━━━━━━━━━━━━━━━━━━━ Accu_Generalization 2103 Pass ────────────────────────── Accu_RL 3 Pass ────────────────────────── Accu_pangu 3 Pass ────────────────────────── Special 103 Pass ────────────────────────── Abnormal 3 Pass,3 条均为预期错误匹配 ────────────────────────── Sanitizer_Generalization 180 Pass ────────────────────────── Perf_Generalization 6 Pass CI/工程验证: 项目 结果 ━━━━━━━━━━━━━━━━━━━━━━━━━━━ 环境检查 Pass ─────────────────────────── experimental package 编译 Pass ─────────────────────────── custom package 安装 Pass ─────────────────────────── op_host UT Pass,1 test ─────────────────────────── op_api UT Pass,43 tests ─────────────────────────── op_graph UT Pass,0 tests ─────────────────────────── NPU 示例运行 Pass ## 文档更新 已更新/新增以下文档: - experimental/math/reduce_std_v2/README.md ## 类型标签 - [ ] Bug修复 - [x] 新特性 - [ ] 性能优化 - [x] 文档更新 - [ ] 其他,请描述: See merge request: cann/ops-math!3126 | 4 months ago |
| 新增Ascend C实现的reduce_std_v2算子 Co-authored-by: tieyutong<tieyutong@huawei.com> # message auto-generated for no-merge-commit merge: !3126 merge upload-reduce-std-v2-20260604 into master 新增Ascend C实现的reduce_std_v2算子 Created-by: tieyutong Commit-by: tieyutong Merged-by: cann-robot Description: ## 描述 本 PR 新增 experimental/math/reduce_std_v2路径下ReduceStdV2算子的Ascend C实现与配套工程文件。 主要改动包括: - 新增 ReduceStdV2 L0 op_api、op_host、op_kernel、op_graph 相关文件。 - 支持 dim、correction、keepdim 参数校验与 shape 推导。 - 支持空 tensor、0 维 tensor、shapeProd <= correction 等特殊场景处理。 - 910B 系列通过 ReduceMean + Expand + ReduceStdWithMean + Cast + ViewCopy 组合路径实现。 - arch35 路径保留 ReduceStdV2 AICore kernel、tiling 与 ascend950 配置。 - 新增 op_host / op_api UT,覆盖参数校验、shape 推导和接口构图路径。 ## 关联的Issue https://gitcode.com/cann/ops-math/issues/1837 ## 测试 已完成以下验证: 套件 用例数 结果 ━━━━━━━━━━━━━━━━━━━━━━━━━━ Accu_Generalization 2103 Pass ────────────────────────── Accu_RL 3 Pass ────────────────────────── Accu_pangu 3 Pass ────────────────────────── Special 103 Pass ────────────────────────── Abnormal 3 Pass,3 条均为预期错误匹配 ────────────────────────── Sanitizer_Generalization 180 Pass ────────────────────────── Perf_Generalization 6 Pass CI/工程验证: 项目 结果 ━━━━━━━━━━━━━━━━━━━━━━━━━━━ 环境检查 Pass ─────────────────────────── experimental package 编译 Pass ─────────────────────────── custom package 安装 Pass ─────────────────────────── op_host UT Pass,1 test ─────────────────────────── op_api UT Pass,43 tests ─────────────────────────── op_graph UT Pass,0 tests ─────────────────────────── NPU 示例运行 Pass ## 文档更新 已更新/新增以下文档: - experimental/math/reduce_std_v2/README.md ## 类型标签 - [ ] Bug修复 - [x] 新特性 - [ ] 性能优化 - [x] 文档更新 - [ ] 其他,请描述: See merge request: cann/ops-math!3126 | 4 months ago |
| 新增Ascend C实现的reduce_std_v2算子 Co-authored-by: tieyutong<tieyutong@huawei.com> # message auto-generated for no-merge-commit merge: !3126 merge upload-reduce-std-v2-20260604 into master 新增Ascend C实现的reduce_std_v2算子 Created-by: tieyutong Commit-by: tieyutong Merged-by: cann-robot Description: ## 描述 本 PR 新增 experimental/math/reduce_std_v2路径下ReduceStdV2算子的Ascend C实现与配套工程文件。 主要改动包括: - 新增 ReduceStdV2 L0 op_api、op_host、op_kernel、op_graph 相关文件。 - 支持 dim、correction、keepdim 参数校验与 shape 推导。 - 支持空 tensor、0 维 tensor、shapeProd <= correction 等特殊场景处理。 - 910B 系列通过 ReduceMean + Expand + ReduceStdWithMean + Cast + ViewCopy 组合路径实现。 - arch35 路径保留 ReduceStdV2 AICore kernel、tiling 与 ascend950 配置。 - 新增 op_host / op_api UT,覆盖参数校验、shape 推导和接口构图路径。 ## 关联的Issue https://gitcode.com/cann/ops-math/issues/1837 ## 测试 已完成以下验证: 套件 用例数 结果 ━━━━━━━━━━━━━━━━━━━━━━━━━━ Accu_Generalization 2103 Pass ────────────────────────── Accu_RL 3 Pass ────────────────────────── Accu_pangu 3 Pass ────────────────────────── Special 103 Pass ────────────────────────── Abnormal 3 Pass,3 条均为预期错误匹配 ────────────────────────── Sanitizer_Generalization 180 Pass ────────────────────────── Perf_Generalization 6 Pass CI/工程验证: 项目 结果 ━━━━━━━━━━━━━━━━━━━━━━━━━━━ 环境检查 Pass ─────────────────────────── experimental package 编译 Pass ─────────────────────────── custom package 安装 Pass ─────────────────────────── op_host UT Pass,1 test ─────────────────────────── op_api UT Pass,43 tests ─────────────────────────── op_graph UT Pass,0 tests ─────────────────────────── NPU 示例运行 Pass ## 文档更新 已更新/新增以下文档: - experimental/math/reduce_std_v2/README.md ## 类型标签 - [ ] Bug修复 - [x] 新特性 - [ ] 性能优化 - [x] 文档更新 - [ ] 其他,请描述: See merge request: cann/ops-math!3126 | 4 months ago |
| 新增Ascend C实现的reduce_std_v2算子 Co-authored-by: tieyutong<tieyutong@huawei.com> # message auto-generated for no-merge-commit merge: !3126 merge upload-reduce-std-v2-20260604 into master 新增Ascend C实现的reduce_std_v2算子 Created-by: tieyutong Commit-by: tieyutong Merged-by: cann-robot Description: ## 描述 本 PR 新增 experimental/math/reduce_std_v2路径下ReduceStdV2算子的Ascend C实现与配套工程文件。 主要改动包括: - 新增 ReduceStdV2 L0 op_api、op_host、op_kernel、op_graph 相关文件。 - 支持 dim、correction、keepdim 参数校验与 shape 推导。 - 支持空 tensor、0 维 tensor、shapeProd <= correction 等特殊场景处理。 - 910B 系列通过 ReduceMean + Expand + ReduceStdWithMean + Cast + ViewCopy 组合路径实现。 - arch35 路径保留 ReduceStdV2 AICore kernel、tiling 与 ascend950 配置。 - 新增 op_host / op_api UT,覆盖参数校验、shape 推导和接口构图路径。 ## 关联的Issue https://gitcode.com/cann/ops-math/issues/1837 ## 测试 已完成以下验证: 套件 用例数 结果 ━━━━━━━━━━━━━━━━━━━━━━━━━━ Accu_Generalization 2103 Pass ────────────────────────── Accu_RL 3 Pass ────────────────────────── Accu_pangu 3 Pass ────────────────────────── Special 103 Pass ────────────────────────── Abnormal 3 Pass,3 条均为预期错误匹配 ────────────────────────── Sanitizer_Generalization 180 Pass ────────────────────────── Perf_Generalization 6 Pass CI/工程验证: 项目 结果 ━━━━━━━━━━━━━━━━━━━━━━━━━━━ 环境检查 Pass ─────────────────────────── experimental package 编译 Pass ─────────────────────────── custom package 安装 Pass ─────────────────────────── op_host UT Pass,1 test ─────────────────────────── op_api UT Pass,43 tests ─────────────────────────── op_graph UT Pass,0 tests ─────────────────────────── NPU 示例运行 Pass ## 文档更新 已更新/新增以下文档: - experimental/math/reduce_std_v2/README.md ## 类型标签 - [ ] Bug修复 - [x] 新特性 - [ ] 性能优化 - [x] 文档更新 - [ ] 其他,请描述: See merge request: cann/ops-math!3126 | 4 months ago |
| experimental算子目录与代码中误用的arch32统一改为arch22 Co-authored-by: clinglai0517<laichangling@huawei.com> # message auto-generated for no-merge-commit merge: !4885 merge arch32-fix-exp into master experimental算子目录与代码中误用的arch32统一改为arch22 Created-by: clinglai0517 Commit-by: clinglai0517 Merged-by: cann-robot Description: ## 描述 将experimental下误用arch32的算子目录、文件名及代码引用统一修正为 arch22 ## 关联的Issue Issue #2749 ## 测试 - 算子编译及ut通过 - rg检索arch32(含Arch32/ARCH32)无残留 ## 文档更新 不涉及 ## 类型标签 <!-- [x] 表示选中 --> - [x] Bug修复 See merge request: cann/ops-math!4885 | 2 months ago |
| md大模型检测低错修改 Co-authored-by: gitcode-chenjiao<chenjiao31@huawei.com> # message auto-generated for no-merge-commit merge: !5183 merge master into master md大模型检测低错修改 Created-by: gitcode-chenjiao Commit-by: gitcode-chenjiao Merged-by: cann-robot Description: ## 描述 <!--在这里详细描述你的改动,包括改动的原因和所采取的方法。--> md大模型检测低错修改 ## 关联的Issue <!-- 如果这个PR是为了解决特定的Issue,请在这里提供Issue链接。--> <!-- 如果这个PR是为了解决特定的问题单,请在这里描述问题单单号。--> [# 2466](https://gitcode.com/cann/ops-math/issues/2446) ## 测试 <!--描述进行了哪些测试来验证你的改动。包括但不限于二级冒烟、算子泛化等。--> ok ## 文档更新 <!--如果这个PR包含文档的更新,请在这里指出。例如:更新了README.md文件。--> *.md ## 类型标签 <!-- [x] 表示选中 --> - [ ] Bug修复 - [ ] 新特性 - [ ] 性能优化 - [x] 文档更新 - [ ] 其他,请描述: See merge request: cann/ops-math!5183 | 2 months ago |