| Files | Last commit | Last update |
|---|---|---|
添加 950 算子 reduce_log_sum Co-authored-by: sakuraqqz<furao15@h-partners.com> # message auto-generated for no-merge-commit merge: !2628 merge reduceLogSum into master 添加 950 算子 reduce_log_sum Created-by: sakuraqqz Commit-by: sakuraqqz Merged-by: cann-robot Description: ## 描述 <!--在这里详细描述你的改动,包括改动的原因和所采取的方法。--> 添加 A5 算子 reduce_log_sum ## 关联的Issue <!-- 如果这个PR是为了解决特定的Issue,请在这里提供Issue链接。--> <!-- 如果这个PR是为了解决特定的问题单,请在这里描述问题单单号。--> https://gitcode.com/cann/ops-math/issues/1677 ## 测试 <!--描述进行了哪些测试来验证你的改动。包括但不限于二级冒烟、算子泛化等。--> ## 文档更新 <!--如果这个PR包含文档的更新,请在这里指出。例如:更新了README.md文件。--> ## 类型标签 <!-- [x] 表示选中 --> - [ ] Bug修复 - [x] 新特性 - [ ] 性能优化 - [ ] 文档更新 - [ ] 其他,请描述: See merge request: cann/ops-math!2628 | 5 months ago | |
feat: reduce_log_sum补充inferdtype实现及UT用例 Co-authored-by: clinglai0517<laichangling@huawei.com> # message auto-generated for no-merge-commit merge: !4774 merge reducelogsum-infershape into master feat: reduce_log_sum补充inferdtype实现及UT用例 Created-by: clinglai0517 Commit-by: clinglai0517 Merged-by: cann-robot Description: ## 描述 ReduceLogSum 算子未注册 InferDataType,输出 y 的 dtype 无法在构图阶段推导。 ## 修改内容 1. **math/reduce_log_sum/op_host/reduce_log_sum_infershape.cpp** - 新增 InferDataType:y.dtype 跟随输入 x(float / float16 / bf16); - 注册 .InferDataType(...),保留原有 InferShape 与 InputsDataDependency({1})。 2. **math/reduce_log_sum/tests/ut/op_host/test_reduce_log_sum_infershape.cpp** - 新增 3 个 InferDataType 用例:float / float16 / bf16(验证输出 dtype 取 x 的 dtype); - 原有 9 个 shape 用例保留。 ## 关联的Issue Issue [#2626](https://gitcode.com/cann/ops-math/issues/2626) ## 测试 bash bash build.sh -u --ophost --soc=ascend950 --ops=reduce_log_sum --gtest_filter=ReduceLogSumInferShape.* 结果:**12/12 用例全部通过**。 ## 文档更新 不涉及 ## 类型标签 <!-- [x] 表示选中 --> - [x] Bug修复 - [ ] 新特性 - [ ] 性能优化 - [ ] 文档更新 - [ ] 其他,请描述: See merge request: cann/ops-math!4774 | 3 months ago | |
test(reduce): 适配 workspace 32B 的 Reduce 模板 UT 期望 Co-authored-by: sunzhongwen1<sunzhongwen1@huawei.com> # message auto-generated for no-merge-commit merge: !7315 merge fix/reduce-workspace-ut-32b into master test(reduce): 适配 workspace 32B 的 Reduce 模板 UT 期望 Created-by: sunzhongwen1 Commit-by: sunzhongwen1 Merged-by: cann-robot Description: ## 描述 opbase reduce 模板普通场景(groupR<=1)workspace 已整改为 32B: - base 仓 PR:https://gitcode.com/cann/opbase/pull/1142 - 已合并 commit: 49475edfeb771ac1b7c14d726be1c8269e5904a0 本 PR 同步完成两件事: 1. 将 OPBASE_TAG_ID 更新到上述 base 已合并 commit,保证线上 UT 使用 32B workspace 版本的 opbase; 2. 更新 ops-math 中 reduce 模板算子 UT 的 workspace 期望: - 6 个 op_host tiling UT 的普通场景期望由 16777216 更新为 32; - 4 个 op_kernel UT 的手写 workspace 由 16MB 更新为 32B; - groupR>1 的 group reduce 期望保持不变; - SquareSumV1 的 noop 分支仍显式调用 GetLibApiWorkSpaceSize,保持 16777216。 本 PR 与 #7305 相关:#7305 基于旧 opbase pin(普通场景返回 0)将期望改为 0,本 PR 按 workspace 32B 整改更新为 32。 涉及文件: - cmake/third_party/opbase.cmake - math/bias_add_grad/tests/ut/op_host/arch35/test_bias_add_grad_tiling.cpp - math/dot/tests/ut/op_host/arch35/test_dot_tiling_arch35.cpp - math/kl_div/tests/ut/op_host/arch35/test_kl_div_tiling.cpp - math/reduce_max/tests/ut/op_host/arch35/test_reduce_max_tiling.cpp - math/reduce_mean_with_count/tests/ut/op_host/arch35/test_reduce_mean_with_count_tiling.cpp - math/square_sum_v1/tests/ut/op_host/arch35/test_square_sum_v1_tiling.cpp - math/reduce_log_sum_exp/tests/ut/op_kernel/test_reduce_log_sum_exp.cpp - math/reduce_log_sum/tests/ut/op_kernel/arch35/test_reduce_log_sum.cpp - math/reduce_max/tests/ut/op_kernel/test_reduce_max.cpp - math/reduce_min/tests/ut/op_kernel/test_reduce_min.cpp ## 关联的Issue - #4485 - #4193 - #4192 ## 测试 本 PR 仅修改 UT 期望值及 opbase 依赖 pin,未修改算子生产代码。OPBASE_TAG_ID 已指向包含 32B workspace 整改的已合并 commit 49475edfeb771ac1b7c14d726be1c8269e5904a0,线上 UT 将基于该版本执行。 ## 文档更新 本次改动不涉及文档更新。 ## 类型标签 - [ ] Bug修复 - [ ] 新特性 - [ ] 性能优化 - [ ] 文档更新 - [x] 其他,请描述:Reduce 模板 UT workspace 期望适配及 base 依赖更新 See merge request: cann/ops-math!7315 | 8 days ago |