| 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 | 1 个月前 |