| 文件 | 最后提交记录 | 最后更新时间 |
|---|---|---|
产品名变更 Co-authored-by: gitcode-chenjiao<chenjiao31@huawei.com> # message auto-generated for no-merge-commit merge: !5912 merge master into master 产品名变更 Created-by: gitcode-chenjiao Commit-by: gitcode-chenjiao Merged-by: cann-robot Description: ## 描述 <!--在这里详细描述你的改动,包括改动的原因和所采取的方法。--> AI处理器对应的产品型号名称更新 ## 关联的Issue <!-- 如果这个PR是为了解决特定的Issue,请在这里提供Issue链接。--> <!-- 如果这个PR是为了解决特定的问题单,请在这里描述问题单单号。--> [#3258](https://gitcode.com/cann/ops-math/issues/3258) ## 测试 <!--描述进行了哪些测试来验证你的改动。包括但不限于二级冒烟、算子泛化等。--> ok ## 文档更新 <!--如果这个PR包含文档的更新,请在这里指出。例如:更新了README.md文件。--> *.md ## 类型标签 <!-- [x] 表示选中 --> - [ ] Bug修复 - [ ] 新特性 - [ ] 性能优化 - [x] 文档更新 - [ ] 其他,请描述: See merge request: cann/ops-math!5912 | 22 天前 | |
fix: 责任田算子日志质量整改 Co-authored-by: yifangao<gaoyifan20@huawei.com> # message auto-generated for no-merge-commit merge: !5043 merge fix-log-evaluation-20260825 into master fix: 责任田算子日志质量整改 Created-by: yifangao Commit-by: yifangao Merged-by: cann-robot Description: ## 描述 根据 cann-log-evaluation-report-20260825.xlsx 的“问题明细”,处理 ops-math 仓库中 ConfusionTransposeD、DynamicStitch、FusedMulAddN、HistogramV2、LinSpace 和 Range 算子目录的问题;OneHot 在报告中无命中项。 本 PR 当前修复 134 条、涉及 20 个文件: - 日志级别错配 15 条:失败日志由 INFO 调整为 ERROR; - 拼写错误 7 条; - 语法错误 6 条; - 禁止中文 106 条:将报告命中的输出文案翻译为英文,并保留原占位符和判断逻辑。 经复查,“提示 / 禁止自定义打印”条目的建议是改用统一日志接口,但现有 std::cout/print 与候选日志接口在 stdout/stderr、默认日志级别和可见性方面并不等价。为避免改变测试输出采集行为,本 PR 暂不修改这 95 条,已回退此前针对它们的修改。 ## 关联的Issue https://gitcode.com/cann/ops-math/issues/2896 ## 测试 冒烟:http://7.215.10.221/scheduler/alljobs?length=100&isalljobs=true&search=20260827_085659613 ## 文档更新 无文档更新。 ## 类型标签 - [x] Bug修复 - [ ] 新特性 - [ ] 性能优化 - [ ] 文档更新 - [ ] 其他,请描述: ## 已修改的 Excel 条目 以下行号均指 cann-log-evaluation-report-20260825.xlsx 的“问题明细”Sheet 实际行号(含表头)。本 PR 共修改 134 条。 ### DynamicStitch(6 条) - 2672–2674,conversion/dynamic_stitch/examples/test_geir_dynamic_stitch.cpp:253,304,343:将初始化、运行图和反初始化失败日志中的 INFO 改为 ERROR,使失败事件与日志级别一致。 - 9132,conversion/dynamic_stitch/op_host/dynamic_stitch_infershape.cpp:88:将 must be same of the value of N 改为 must be the same as the value of N,并将 indices'size 改为 indices' size。 - 9133,同文件 :116:将 dimNum must <= 改为 dimNum must be less than or equal to。 - 9134,同文件 :153:将 suffixShape is does not same 改为 the suffixShape is not the same。 ### FusedMulAddN experimental 目录(108 条) - 2871–2873,experimental/math/fused_mul_add_n/examples/test_geir_fused_mul_add_n.cpp:179,224,267:将初始化、运行图和反初始化失败日志中的 INFO 改为 ERROR。 - 25381–25456,experimental/math/fused_mul_add_n/tests/st/test_aclnn_fused_mul_add_n.cpp:将 76 条测试输出完整翻译为英文,覆盖空 Tensor、结果比对、Golden 自测、L0/L1/L2 用例、不变量、NaN/Inf、整数回绕、广播等价、确定性和最终汇总。例如: - 空 tensor(0 元素),无需比对 → empty tensor (0 elements), no comparison needed; - 不匹配 [%zu]: 期望=..., 实际=... → mismatch [%zu]: expected=..., actual=...; - CPU Golden 自测汇总: 通过 %d / 失败 %d → CPU Golden self-test summary: passed %d / failed %d; - 总体结果: %s → Overall result: %s。 修改保持 %s/%d/%zu/%.6f 等占位符、换行和判断逻辑不变。 - 25457–25463、25466,experimental/math/fused_mul_add_n/tests/st/torch/compare.py:59,78,95,96,99,114,121,135:翻译空 Tensor、NaN/Inf、阈值、最大差异、整数不匹配和 shape 不一致等比对输出。 - 25470,experimental/math/fused_mul_add_n/tests/st/torch/golden.py:189:+inf 传播 改为 +inf propagation。 - 25472、25474–25475、25477–25487、25489、25492、25494–25495,experimental/math/fused_mul_add_n/tests/st/torch/test.py:翻译 NPU 可用性、Golden 不变量、NaN 位置、测试结果、参数错误、共享库加载、用例筛选及最终报告输出。例如: - NPU 不可用 → NPU unavailable; - 结果 → Result; - 总体测试报告 → Overall test report; - 总计/通过/失败/跳过 → Total/passed/failed/skipped。 - 25504,experimental/math/fused_mul_add_n/tests/ut/op_host/test_fused_mul_add_n_tiling.cpp:1045:将“fp32 应比 fp16 用更多核”的断言说明翻译为英文。 - 25510,experimental/math/fused_mul_add_n/tests/ut/op_kernel/test_fused_mul_add_n.cpp:887:将 x3 shape [1,1] 与 [1] 输出不一致 改为 x3 shape [1,1] and [1] outputs differ。 ### FusedMulAddN 正式目录(3 条) - 3117–3119,math/fused_mul_add_n/examples/test_geir_fused_mul_add_n.cpp:206,257,299:将初始化、运行图和反初始化失败日志中的 INFO 改为 ERROR。 ### HistogramV2(7 条) - 3140–3142,math/histogram_v2/examples/test_geir_histogram_v2.cpp:198,249,291:将初始化、运行图和反初始化失败日志中的 INFO 改为 ERROR。 - 3143,math/histogram_v2/op_graph/histogram_v2_graph_infer.cpp:41:将 befer set y dtype 改为 before set y dtype。 - 9266,math/histogram_v2/op_api/aclnn_histc.cpp:121:将 The value of bins can not less or equal 0. 改为 The value of bins must be greater than 0.。 - 9267–9268,同文件 :129,136:将 The value of max should greater than or equal to min. 改为 The value of max should be greater than or equal to min.。 ### LinSpace(6 条) - 3175–3177,math/lin_space/examples/test_geir_lin_space.cpp:209,260,302:将初始化、运行图和反初始化失败日志中的 INFO 改为 ERROR。 - 3178,math/lin_space/op_host/lin_space_tiling.cpp:526:将误写的函数名 TilingPrepare4LinSpaceFlat 改为实际函数名 TilingPrepare4LinSpace。 - 3179,math/lin_space/op_host/lin_space_tiling_arch35.cpp:225:将 funtion 改为 function。 - 3180,同文件 :389:将 caculate 改为 calculate。 ### Range 正式目录(3 条) - 3237,math/range/op_host/arch35/range_tiling_arch35.cpp:80:将 funtion 改为 function。 - 3238–3239,math/range/op_host/range_infershape.cpp:120,123:将两处 increate 改为 increase,分别保留 positive/negative 分支语义。 ### Range experimental 目录(1 条) - 25842,experimental/math/range/examples/test_aclnn_range.cpp:134:将 输出数据长度为: 改为 Output data length: ,同时替换全角冒号。 ### 无修改项 - ConfusionTransposeD:只有“禁止自定义打印”条目,按下节说明暂未修改。 - LinSpaceD experimental 目录:只有“禁止自定义打印”条目,按下节说明暂未修改。 - OneHot 正式及 experimental 目录:报告中均无命中项。 ## 暂未修改的 Excel 条目 以下 95 条均为“严重级:提示,规则:禁止自定义打印”。当前保留原来的 std::cout/cout/printf/print,待仓库明确能够保持测试输出语义的统一接口后再处理。 ### ConfusionTransposeD(5 条) - 24258–24260:conversion/confusion_transpose_d/tests/ut/op_api/test_aclnn_confusion_transpose_d.cpp - 24261–24262:conversion/confusion_transpose_d/tests/ut/op_host/arch35/test_confusion_transpose_d_tiling.cpp ### DynamicStitch(12 条) - 24312–24319:conversion/dynamic_stitch/examples/test_geir_dynamic_stitch.cpp - 24320–24321:conversion/dynamic_stitch/tests/ut/op_host/arch35/test_dynamic_stitch_tiling.cpp - 24322–24323:conversion/dynamic_stitch/tests/ut/op_host/test_dynamic_stitch_infershape.cpp ### FusedMulAddN experimental 目录(31 条) - 25376–25379:experimental/math/fused_mul_add_n/examples/test_geir_fused_mul_add_n.cpp - 25380:experimental/math/fused_mul_add_n/tests/st/aclnnFusedMulAddN/gen_cases.py - 25464–25465:experimental/math/fused_mul_add_n/tests/st/torch/compare.py - 25467–25469:experimental/math/fused_mul_add_n/tests/st/torch/golden.py - 25471、25473、25476、25488、25490–25491、25493、25496–25497:experimental/math/fused_mul_add_n/tests/st/torch/test.py - 25498–25499:experimental/math/fused_mul_add_n/tests/ut/op_api/test_aclnn_fused_mul_add_n.cpp - 25500–25501:experimental/math/fused_mul_add_n/tests/ut/op_host/test_fused_mul_add_n_infershape.cpp - 25502–25503:experimental/math/fused_mul_add_n/tests/ut/op_host/test_fused_mul_add_n_tiling.cpp - 25505–25509、25511:experimental/math/fused_mul_add_n/tests/ut/op_kernel/test_fused_mul_add_n.cpp ### FusedMulAddN 正式目录(9 条) - 27114–27118:math/fused_mul_add_n/examples/test_geir_fused_mul_add_n.cpp - 27119–27120:math/fused_mul_add_n/tests/ut/op_host/arch35/test_fused_mul_add_n_tiling_arch35.cpp - 27121–27122:math/fused_mul_add_n/tests/ut/op_host/test_fused_mul_add_n_infershape.cpp ### HistogramV2(16 条) - 27228–27232:math/histogram_v2/examples/test_geir_histogram_v2.cpp - 27233:math/histogram_v2/tests/assets/golden.py - 27234–27235:math/histogram_v2/tests/ut/op_api/test_aclnn_histc.cpp - 27236–27237:math/histogram_v2/tests/ut/op_host/arch22/test_histogram_v2_tiling.cpp - 27238–27239:math/histogram_v2/tests/ut/op_host/arch35/test_histogram_v2_tiling.cpp - 27240–27241:math/histogram_v2/tests/ut/op_host/test_histogram_v2_infershape.cpp - 27242–27243:math/histogram_v2/tests/ut/op_kernel/test_histogram_v2.cpp ### LinSpace(14 条) - 27406–27410:math/lin_space/examples/test_geir_lin_space.cpp - 27411–27412:math/lin_space/tests/ut/op_api/test_aclnn_linspace.cpp - 27413–27415:math/lin_space/tests/ut/op_host/test_lin_space_infershape.cpp - 27416–27417:math/lin_space/tests/ut/op_host/test_lin_space_tiling.cpp - 27418–27419:math/lin_space/tests/ut/op_kernel/test_lin_space.cpp ### Range(8 条) - 27678–27679:math/range/tests/ut/op_api/test_aclnn_arange.cpp - 27680–27681:math/range/tests/ut/op_api/test_aclnn_range.cpp - 27682–27683:math/range/tests/ut/op_host/arch35/test_range_tiling_arch35.cpp - 27684–27685:math/range/tests/ut/op_host/test_range_infershape.cpp See merge request: cann/ops-math!5043 | 1 个月前 | |
fix: 责任田算子日志质量整改 Co-authored-by: yifangao<gaoyifan20@huawei.com> # message auto-generated for no-merge-commit merge: !5043 merge fix-log-evaluation-20260825 into master fix: 责任田算子日志质量整改 Created-by: yifangao Commit-by: yifangao Merged-by: cann-robot Description: ## 描述 根据 cann-log-evaluation-report-20260825.xlsx 的“问题明细”,处理 ops-math 仓库中 ConfusionTransposeD、DynamicStitch、FusedMulAddN、HistogramV2、LinSpace 和 Range 算子目录的问题;OneHot 在报告中无命中项。 本 PR 当前修复 134 条、涉及 20 个文件: - 日志级别错配 15 条:失败日志由 INFO 调整为 ERROR; - 拼写错误 7 条; - 语法错误 6 条; - 禁止中文 106 条:将报告命中的输出文案翻译为英文,并保留原占位符和判断逻辑。 经复查,“提示 / 禁止自定义打印”条目的建议是改用统一日志接口,但现有 std::cout/print 与候选日志接口在 stdout/stderr、默认日志级别和可见性方面并不等价。为避免改变测试输出采集行为,本 PR 暂不修改这 95 条,已回退此前针对它们的修改。 ## 关联的Issue https://gitcode.com/cann/ops-math/issues/2896 ## 测试 冒烟:http://7.215.10.221/scheduler/alljobs?length=100&isalljobs=true&search=20260827_085659613 ## 文档更新 无文档更新。 ## 类型标签 - [x] Bug修复 - [ ] 新特性 - [ ] 性能优化 - [ ] 文档更新 - [ ] 其他,请描述: ## 已修改的 Excel 条目 以下行号均指 cann-log-evaluation-report-20260825.xlsx 的“问题明细”Sheet 实际行号(含表头)。本 PR 共修改 134 条。 ### DynamicStitch(6 条) - 2672–2674,conversion/dynamic_stitch/examples/test_geir_dynamic_stitch.cpp:253,304,343:将初始化、运行图和反初始化失败日志中的 INFO 改为 ERROR,使失败事件与日志级别一致。 - 9132,conversion/dynamic_stitch/op_host/dynamic_stitch_infershape.cpp:88:将 must be same of the value of N 改为 must be the same as the value of N,并将 indices'size 改为 indices' size。 - 9133,同文件 :116:将 dimNum must <= 改为 dimNum must be less than or equal to。 - 9134,同文件 :153:将 suffixShape is does not same 改为 the suffixShape is not the same。 ### FusedMulAddN experimental 目录(108 条) - 2871–2873,experimental/math/fused_mul_add_n/examples/test_geir_fused_mul_add_n.cpp:179,224,267:将初始化、运行图和反初始化失败日志中的 INFO 改为 ERROR。 - 25381–25456,experimental/math/fused_mul_add_n/tests/st/test_aclnn_fused_mul_add_n.cpp:将 76 条测试输出完整翻译为英文,覆盖空 Tensor、结果比对、Golden 自测、L0/L1/L2 用例、不变量、NaN/Inf、整数回绕、广播等价、确定性和最终汇总。例如: - 空 tensor(0 元素),无需比对 → empty tensor (0 elements), no comparison needed; - 不匹配 [%zu]: 期望=..., 实际=... → mismatch [%zu]: expected=..., actual=...; - CPU Golden 自测汇总: 通过 %d / 失败 %d → CPU Golden self-test summary: passed %d / failed %d; - 总体结果: %s → Overall result: %s。 修改保持 %s/%d/%zu/%.6f 等占位符、换行和判断逻辑不变。 - 25457–25463、25466,experimental/math/fused_mul_add_n/tests/st/torch/compare.py:59,78,95,96,99,114,121,135:翻译空 Tensor、NaN/Inf、阈值、最大差异、整数不匹配和 shape 不一致等比对输出。 - 25470,experimental/math/fused_mul_add_n/tests/st/torch/golden.py:189:+inf 传播 改为 +inf propagation。 - 25472、25474–25475、25477–25487、25489、25492、25494–25495,experimental/math/fused_mul_add_n/tests/st/torch/test.py:翻译 NPU 可用性、Golden 不变量、NaN 位置、测试结果、参数错误、共享库加载、用例筛选及最终报告输出。例如: - NPU 不可用 → NPU unavailable; - 结果 → Result; - 总体测试报告 → Overall test report; - 总计/通过/失败/跳过 → Total/passed/failed/skipped。 - 25504,experimental/math/fused_mul_add_n/tests/ut/op_host/test_fused_mul_add_n_tiling.cpp:1045:将“fp32 应比 fp16 用更多核”的断言说明翻译为英文。 - 25510,experimental/math/fused_mul_add_n/tests/ut/op_kernel/test_fused_mul_add_n.cpp:887:将 x3 shape [1,1] 与 [1] 输出不一致 改为 x3 shape [1,1] and [1] outputs differ。 ### FusedMulAddN 正式目录(3 条) - 3117–3119,math/fused_mul_add_n/examples/test_geir_fused_mul_add_n.cpp:206,257,299:将初始化、运行图和反初始化失败日志中的 INFO 改为 ERROR。 ### HistogramV2(7 条) - 3140–3142,math/histogram_v2/examples/test_geir_histogram_v2.cpp:198,249,291:将初始化、运行图和反初始化失败日志中的 INFO 改为 ERROR。 - 3143,math/histogram_v2/op_graph/histogram_v2_graph_infer.cpp:41:将 befer set y dtype 改为 before set y dtype。 - 9266,math/histogram_v2/op_api/aclnn_histc.cpp:121:将 The value of bins can not less or equal 0. 改为 The value of bins must be greater than 0.。 - 9267–9268,同文件 :129,136:将 The value of max should greater than or equal to min. 改为 The value of max should be greater than or equal to min.。 ### LinSpace(6 条) - 3175–3177,math/lin_space/examples/test_geir_lin_space.cpp:209,260,302:将初始化、运行图和反初始化失败日志中的 INFO 改为 ERROR。 - 3178,math/lin_space/op_host/lin_space_tiling.cpp:526:将误写的函数名 TilingPrepare4LinSpaceFlat 改为实际函数名 TilingPrepare4LinSpace。 - 3179,math/lin_space/op_host/lin_space_tiling_arch35.cpp:225:将 funtion 改为 function。 - 3180,同文件 :389:将 caculate 改为 calculate。 ### Range 正式目录(3 条) - 3237,math/range/op_host/arch35/range_tiling_arch35.cpp:80:将 funtion 改为 function。 - 3238–3239,math/range/op_host/range_infershape.cpp:120,123:将两处 increate 改为 increase,分别保留 positive/negative 分支语义。 ### Range experimental 目录(1 条) - 25842,experimental/math/range/examples/test_aclnn_range.cpp:134:将 输出数据长度为: 改为 Output data length: ,同时替换全角冒号。 ### 无修改项 - ConfusionTransposeD:只有“禁止自定义打印”条目,按下节说明暂未修改。 - LinSpaceD experimental 目录:只有“禁止自定义打印”条目,按下节说明暂未修改。 - OneHot 正式及 experimental 目录:报告中均无命中项。 ## 暂未修改的 Excel 条目 以下 95 条均为“严重级:提示,规则:禁止自定义打印”。当前保留原来的 std::cout/cout/printf/print,待仓库明确能够保持测试输出语义的统一接口后再处理。 ### ConfusionTransposeD(5 条) - 24258–24260:conversion/confusion_transpose_d/tests/ut/op_api/test_aclnn_confusion_transpose_d.cpp - 24261–24262:conversion/confusion_transpose_d/tests/ut/op_host/arch35/test_confusion_transpose_d_tiling.cpp ### DynamicStitch(12 条) - 24312–24319:conversion/dynamic_stitch/examples/test_geir_dynamic_stitch.cpp - 24320–24321:conversion/dynamic_stitch/tests/ut/op_host/arch35/test_dynamic_stitch_tiling.cpp - 24322–24323:conversion/dynamic_stitch/tests/ut/op_host/test_dynamic_stitch_infershape.cpp ### FusedMulAddN experimental 目录(31 条) - 25376–25379:experimental/math/fused_mul_add_n/examples/test_geir_fused_mul_add_n.cpp - 25380:experimental/math/fused_mul_add_n/tests/st/aclnnFusedMulAddN/gen_cases.py - 25464–25465:experimental/math/fused_mul_add_n/tests/st/torch/compare.py - 25467–25469:experimental/math/fused_mul_add_n/tests/st/torch/golden.py - 25471、25473、25476、25488、25490–25491、25493、25496–25497:experimental/math/fused_mul_add_n/tests/st/torch/test.py - 25498–25499:experimental/math/fused_mul_add_n/tests/ut/op_api/test_aclnn_fused_mul_add_n.cpp - 25500–25501:experimental/math/fused_mul_add_n/tests/ut/op_host/test_fused_mul_add_n_infershape.cpp - 25502–25503:experimental/math/fused_mul_add_n/tests/ut/op_host/test_fused_mul_add_n_tiling.cpp - 25505–25509、25511:experimental/math/fused_mul_add_n/tests/ut/op_kernel/test_fused_mul_add_n.cpp ### FusedMulAddN 正式目录(9 条) - 27114–27118:math/fused_mul_add_n/examples/test_geir_fused_mul_add_n.cpp - 27119–27120:math/fused_mul_add_n/tests/ut/op_host/arch35/test_fused_mul_add_n_tiling_arch35.cpp - 27121–27122:math/fused_mul_add_n/tests/ut/op_host/test_fused_mul_add_n_infershape.cpp ### HistogramV2(16 条) - 27228–27232:math/histogram_v2/examples/test_geir_histogram_v2.cpp - 27233:math/histogram_v2/tests/assets/golden.py - 27234–27235:math/histogram_v2/tests/ut/op_api/test_aclnn_histc.cpp - 27236–27237:math/histogram_v2/tests/ut/op_host/arch22/test_histogram_v2_tiling.cpp - 27238–27239:math/histogram_v2/tests/ut/op_host/arch35/test_histogram_v2_tiling.cpp - 27240–27241:math/histogram_v2/tests/ut/op_host/test_histogram_v2_infershape.cpp - 27242–27243:math/histogram_v2/tests/ut/op_kernel/test_histogram_v2.cpp ### LinSpace(14 条) - 27406–27410:math/lin_space/examples/test_geir_lin_space.cpp - 27411–27412:math/lin_space/tests/ut/op_api/test_aclnn_linspace.cpp - 27413–27415:math/lin_space/tests/ut/op_host/test_lin_space_infershape.cpp - 27416–27417:math/lin_space/tests/ut/op_host/test_lin_space_tiling.cpp - 27418–27419:math/lin_space/tests/ut/op_kernel/test_lin_space.cpp ### Range(8 条) - 27678–27679:math/range/tests/ut/op_api/test_aclnn_arange.cpp - 27680–27681:math/range/tests/ut/op_api/test_aclnn_range.cpp - 27682–27683:math/range/tests/ut/op_host/arch35/test_range_tiling_arch35.cpp - 27684–27685:math/range/tests/ut/op_host/test_range_infershape.cpp See merge request: cann/ops-math!5043 | 1 个月前 | |
fix: 责任田算子日志质量整改 Co-authored-by: yifangao<gaoyifan20@huawei.com> # message auto-generated for no-merge-commit merge: !5043 merge fix-log-evaluation-20260825 into master fix: 责任田算子日志质量整改 Created-by: yifangao Commit-by: yifangao Merged-by: cann-robot Description: ## 描述 根据 cann-log-evaluation-report-20260825.xlsx 的“问题明细”,处理 ops-math 仓库中 ConfusionTransposeD、DynamicStitch、FusedMulAddN、HistogramV2、LinSpace 和 Range 算子目录的问题;OneHot 在报告中无命中项。 本 PR 当前修复 134 条、涉及 20 个文件: - 日志级别错配 15 条:失败日志由 INFO 调整为 ERROR; - 拼写错误 7 条; - 语法错误 6 条; - 禁止中文 106 条:将报告命中的输出文案翻译为英文,并保留原占位符和判断逻辑。 经复查,“提示 / 禁止自定义打印”条目的建议是改用统一日志接口,但现有 std::cout/print 与候选日志接口在 stdout/stderr、默认日志级别和可见性方面并不等价。为避免改变测试输出采集行为,本 PR 暂不修改这 95 条,已回退此前针对它们的修改。 ## 关联的Issue https://gitcode.com/cann/ops-math/issues/2896 ## 测试 冒烟:http://7.215.10.221/scheduler/alljobs?length=100&isalljobs=true&search=20260827_085659613 ## 文档更新 无文档更新。 ## 类型标签 - [x] Bug修复 - [ ] 新特性 - [ ] 性能优化 - [ ] 文档更新 - [ ] 其他,请描述: ## 已修改的 Excel 条目 以下行号均指 cann-log-evaluation-report-20260825.xlsx 的“问题明细”Sheet 实际行号(含表头)。本 PR 共修改 134 条。 ### DynamicStitch(6 条) - 2672–2674,conversion/dynamic_stitch/examples/test_geir_dynamic_stitch.cpp:253,304,343:将初始化、运行图和反初始化失败日志中的 INFO 改为 ERROR,使失败事件与日志级别一致。 - 9132,conversion/dynamic_stitch/op_host/dynamic_stitch_infershape.cpp:88:将 must be same of the value of N 改为 must be the same as the value of N,并将 indices'size 改为 indices' size。 - 9133,同文件 :116:将 dimNum must <= 改为 dimNum must be less than or equal to。 - 9134,同文件 :153:将 suffixShape is does not same 改为 the suffixShape is not the same。 ### FusedMulAddN experimental 目录(108 条) - 2871–2873,experimental/math/fused_mul_add_n/examples/test_geir_fused_mul_add_n.cpp:179,224,267:将初始化、运行图和反初始化失败日志中的 INFO 改为 ERROR。 - 25381–25456,experimental/math/fused_mul_add_n/tests/st/test_aclnn_fused_mul_add_n.cpp:将 76 条测试输出完整翻译为英文,覆盖空 Tensor、结果比对、Golden 自测、L0/L1/L2 用例、不变量、NaN/Inf、整数回绕、广播等价、确定性和最终汇总。例如: - 空 tensor(0 元素),无需比对 → empty tensor (0 elements), no comparison needed; - 不匹配 [%zu]: 期望=..., 实际=... → mismatch [%zu]: expected=..., actual=...; - CPU Golden 自测汇总: 通过 %d / 失败 %d → CPU Golden self-test summary: passed %d / failed %d; - 总体结果: %s → Overall result: %s。 修改保持 %s/%d/%zu/%.6f 等占位符、换行和判断逻辑不变。 - 25457–25463、25466,experimental/math/fused_mul_add_n/tests/st/torch/compare.py:59,78,95,96,99,114,121,135:翻译空 Tensor、NaN/Inf、阈值、最大差异、整数不匹配和 shape 不一致等比对输出。 - 25470,experimental/math/fused_mul_add_n/tests/st/torch/golden.py:189:+inf 传播 改为 +inf propagation。 - 25472、25474–25475、25477–25487、25489、25492、25494–25495,experimental/math/fused_mul_add_n/tests/st/torch/test.py:翻译 NPU 可用性、Golden 不变量、NaN 位置、测试结果、参数错误、共享库加载、用例筛选及最终报告输出。例如: - NPU 不可用 → NPU unavailable; - 结果 → Result; - 总体测试报告 → Overall test report; - 总计/通过/失败/跳过 → Total/passed/failed/skipped。 - 25504,experimental/math/fused_mul_add_n/tests/ut/op_host/test_fused_mul_add_n_tiling.cpp:1045:将“fp32 应比 fp16 用更多核”的断言说明翻译为英文。 - 25510,experimental/math/fused_mul_add_n/tests/ut/op_kernel/test_fused_mul_add_n.cpp:887:将 x3 shape [1,1] 与 [1] 输出不一致 改为 x3 shape [1,1] and [1] outputs differ。 ### FusedMulAddN 正式目录(3 条) - 3117–3119,math/fused_mul_add_n/examples/test_geir_fused_mul_add_n.cpp:206,257,299:将初始化、运行图和反初始化失败日志中的 INFO 改为 ERROR。 ### HistogramV2(7 条) - 3140–3142,math/histogram_v2/examples/test_geir_histogram_v2.cpp:198,249,291:将初始化、运行图和反初始化失败日志中的 INFO 改为 ERROR。 - 3143,math/histogram_v2/op_graph/histogram_v2_graph_infer.cpp:41:将 befer set y dtype 改为 before set y dtype。 - 9266,math/histogram_v2/op_api/aclnn_histc.cpp:121:将 The value of bins can not less or equal 0. 改为 The value of bins must be greater than 0.。 - 9267–9268,同文件 :129,136:将 The value of max should greater than or equal to min. 改为 The value of max should be greater than or equal to min.。 ### LinSpace(6 条) - 3175–3177,math/lin_space/examples/test_geir_lin_space.cpp:209,260,302:将初始化、运行图和反初始化失败日志中的 INFO 改为 ERROR。 - 3178,math/lin_space/op_host/lin_space_tiling.cpp:526:将误写的函数名 TilingPrepare4LinSpaceFlat 改为实际函数名 TilingPrepare4LinSpace。 - 3179,math/lin_space/op_host/lin_space_tiling_arch35.cpp:225:将 funtion 改为 function。 - 3180,同文件 :389:将 caculate 改为 calculate。 ### Range 正式目录(3 条) - 3237,math/range/op_host/arch35/range_tiling_arch35.cpp:80:将 funtion 改为 function。 - 3238–3239,math/range/op_host/range_infershape.cpp:120,123:将两处 increate 改为 increase,分别保留 positive/negative 分支语义。 ### Range experimental 目录(1 条) - 25842,experimental/math/range/examples/test_aclnn_range.cpp:134:将 输出数据长度为: 改为 Output data length: ,同时替换全角冒号。 ### 无修改项 - ConfusionTransposeD:只有“禁止自定义打印”条目,按下节说明暂未修改。 - LinSpaceD experimental 目录:只有“禁止自定义打印”条目,按下节说明暂未修改。 - OneHot 正式及 experimental 目录:报告中均无命中项。 ## 暂未修改的 Excel 条目 以下 95 条均为“严重级:提示,规则:禁止自定义打印”。当前保留原来的 std::cout/cout/printf/print,待仓库明确能够保持测试输出语义的统一接口后再处理。 ### ConfusionTransposeD(5 条) - 24258–24260:conversion/confusion_transpose_d/tests/ut/op_api/test_aclnn_confusion_transpose_d.cpp - 24261–24262:conversion/confusion_transpose_d/tests/ut/op_host/arch35/test_confusion_transpose_d_tiling.cpp ### DynamicStitch(12 条) - 24312–24319:conversion/dynamic_stitch/examples/test_geir_dynamic_stitch.cpp - 24320–24321:conversion/dynamic_stitch/tests/ut/op_host/arch35/test_dynamic_stitch_tiling.cpp - 24322–24323:conversion/dynamic_stitch/tests/ut/op_host/test_dynamic_stitch_infershape.cpp ### FusedMulAddN experimental 目录(31 条) - 25376–25379:experimental/math/fused_mul_add_n/examples/test_geir_fused_mul_add_n.cpp - 25380:experimental/math/fused_mul_add_n/tests/st/aclnnFusedMulAddN/gen_cases.py - 25464–25465:experimental/math/fused_mul_add_n/tests/st/torch/compare.py - 25467–25469:experimental/math/fused_mul_add_n/tests/st/torch/golden.py - 25471、25473、25476、25488、25490–25491、25493、25496–25497:experimental/math/fused_mul_add_n/tests/st/torch/test.py - 25498–25499:experimental/math/fused_mul_add_n/tests/ut/op_api/test_aclnn_fused_mul_add_n.cpp - 25500–25501:experimental/math/fused_mul_add_n/tests/ut/op_host/test_fused_mul_add_n_infershape.cpp - 25502–25503:experimental/math/fused_mul_add_n/tests/ut/op_host/test_fused_mul_add_n_tiling.cpp - 25505–25509、25511:experimental/math/fused_mul_add_n/tests/ut/op_kernel/test_fused_mul_add_n.cpp ### FusedMulAddN 正式目录(9 条) - 27114–27118:math/fused_mul_add_n/examples/test_geir_fused_mul_add_n.cpp - 27119–27120:math/fused_mul_add_n/tests/ut/op_host/arch35/test_fused_mul_add_n_tiling_arch35.cpp - 27121–27122:math/fused_mul_add_n/tests/ut/op_host/test_fused_mul_add_n_infershape.cpp ### HistogramV2(16 条) - 27228–27232:math/histogram_v2/examples/test_geir_histogram_v2.cpp - 27233:math/histogram_v2/tests/assets/golden.py - 27234–27235:math/histogram_v2/tests/ut/op_api/test_aclnn_histc.cpp - 27236–27237:math/histogram_v2/tests/ut/op_host/arch22/test_histogram_v2_tiling.cpp - 27238–27239:math/histogram_v2/tests/ut/op_host/arch35/test_histogram_v2_tiling.cpp - 27240–27241:math/histogram_v2/tests/ut/op_host/test_histogram_v2_infershape.cpp - 27242–27243:math/histogram_v2/tests/ut/op_kernel/test_histogram_v2.cpp ### LinSpace(14 条) - 27406–27410:math/lin_space/examples/test_geir_lin_space.cpp - 27411–27412:math/lin_space/tests/ut/op_api/test_aclnn_linspace.cpp - 27413–27415:math/lin_space/tests/ut/op_host/test_lin_space_infershape.cpp - 27416–27417:math/lin_space/tests/ut/op_host/test_lin_space_tiling.cpp - 27418–27419:math/lin_space/tests/ut/op_kernel/test_lin_space.cpp ### Range(8 条) - 27678–27679:math/range/tests/ut/op_api/test_aclnn_arange.cpp - 27680–27681:math/range/tests/ut/op_api/test_aclnn_range.cpp - 27682–27683:math/range/tests/ut/op_host/arch35/test_range_tiling_arch35.cpp - 27684–27685:math/range/tests/ut/op_host/test_range_infershape.cpp See merge request: cann/ops-math!5043 | 1 个月前 | |
feat: HistogramV2算子新增ascend960dt支持,并补充OneHot编译配置 Co-authored-by: wangxun21<wangxun21@huawei.com> # message auto-generated for no-merge-commit merge: !6148 merge feat/ascend960dt-onehot-histogramv2 into master feat: HistogramV2算子新增ascend960dt支持,并补充OneHot编译配置 Created-by: wangxun21 Commit-by: wangxun21 Merged-by: cann-robot Description: ## 描述 1. **HistogramV2 新增 ascend960dt 支持** - 新增 math/histogram_v2/op_host/config/ascend960dt/(由 ascend950 派生,含 y_dtype); - histogram_v2_def.cpp 注册 ascend960dt; - scripts/kernel/binary_config/ascendc_config.json 增加 HistogramV2 的 ascend960dt 编译配置。 2. **补充 OneHot 的 960dt 编译配置** - OneHot 的 ascend960dt 支持已由主线 06f929201(MR !4221)合入,但漏配 scripts/kernel/binary_config/ascendc_config.json,致使 960dt kernel 编译缺少 -mllvm -cce-aicore-dcci-before-kernel-end=false(与 ascend950/pad 等 960dt 适配不一致); - 本 PR 补上 OneHot 的 ascend960dt compute_units 与 compile_options。 已 rebase 到最新 master。 ## 关联的Issue https://gitcode.com/cann/ops-math/issues/3425 ## 测试 - 新增 config 的 JSON 可正常解析,且与对应 ascend950 配置一致(HistogramV2 含 y_dtype); - 未在本地执行编译/UT,待仓库 CI 门禁(compile / UT / 冒烟)验证。 ## 文档更新 无 ## 类型标签 - [x] 新特性 - [x] Bug修复 See merge request: cann/ops-math!6148 | 1 天前 | |
fix: 消除 histogram_v2 魔法数字并修正 reduce_std_with_mean 函数头注释 Co-authored-by: xiafengkou<luojiangtao4@huawei.com> # message auto-generated for no-merge-commit merge: !5943 merge master into master fix: 消除 histogram_v2 魔法数字并修正 reduce_std_with_mean 函数头注释 Created-by: xiafengkou Commit-by: xiafengkou Merged-by: cann-robot Description: ## 描述 本次改动为纯代码规范整改,修复 2 类静态扫描告警,不涉及任何逻辑变更: 1. **G.CNS.02(魔法数字)**: math/histogram_v2/op_kernel/arch35/histogram_v2_simd_full_load_det_fp32out.h - 将 TQue<TPosition::VECIN, 2> xQue_ 与 InitBuffer(xQue_, 2, ...) 中的字面量 2 提取为具名常量 HIST_SIMD_X_QUE_DEPTH = 2(语义为 x 输入队列的双缓冲深度),两处引用同一常量,编译期展开结果与原代码完全一致。 2. **G.CMT.04(空格式函数头注释)**:math/reduce_std_with_mean/op_api/reduce_std_with_mean.cpp - GetReduceOutputShape 函数头注释存在断行残留的空格式行(行尾以冒号结尾、无实质内容),改写为完整句子并入完整描述,仅调整注释文字,代码逻辑与注释语义不变。 ## 关联的Issue https://gitcode.com/cann/ops-math/issues/3290 ## 测试 - 改动仅涉及命名与注释,HIST_SIMD_X_QUE_DEPTH 与原字面量 2 等值,无编译期/运行期行为变化,既有 UT/ST 用例不受影响。 - 本地 pre-commit 静态检查通过(提交成功),推送时远端 git hooks 校验 PASSED。 ## 文档更新 无 ## 类型标签 - [ ] Bug修复 - [ ] 新特性 - [ ] 性能优化 - [ ] 文档更新 - [x] 其他,请描述:代码规范问题整改(G.CNS.02 魔法数字 / G.CMT.04 空格式函数头注释) See merge request: cann/ops-math!5943 | 20 天前 | |
feat(histogram_v2): 新增确定性 SIMD UB_FULL 模板 Co-authored-by: hanrui22<hanrui2@huawei.com> # message auto-generated for no-merge-commit merge: !5319 merge feat/histogram-v2-simd into master feat(histogram_v2): 新增确定性 SIMD UB_FULL 模板 Created-by: hanrui22 Commit-by: hanrui22 Merged-by: cann-robot Description: ## Summary - 新增 HistogramV2 SIMD tiling 模板(优先级 20000,tiling key 2111/2117),在确定性 + fp32 输出 + bins<=127 + UB_FULL 时优先走 dhistv2,不再落较慢的 SIMT 确定性路径。 - 同步 kernel 分派、host UT(选中 / bins>127 回退 / 非确定性不选),以及 145 条 TTK e2e 用例。 - TTK( --dl=1 --warmup true --run 3)145/145 精度与确定性通过;HistogramV2 kernel 相对 xlsx SIMT 非确定性中位 5.06x、相对确定性中位 6.01x,无回退。 ## Test plan - [ ] host UT:histogram_v2 tiling 2111/2117 及回退 1111/111 - [ ] 自定义算子包 ascend950 编译安装后,source setenv.bash + conda activate hanrui - [ ] python3 -m ttk e2e -i math/histogram_v2/tests/st/arch35/ttk_e2e_histogram_v2_145.csv --dl=1 --warmup true --run 3 --compare close --seed 42 - [ ] 确认确定性场景落 SIMD(2111/2117),bins>127 仍走 SIMT det See merge request: cann/ops-math!5319 | 25 天前 | |
剥离math下op_host/op_api到op_api Co-authored-by: yue-ma<mayue54@huawei.com> # message auto-generated for no-merge-commit merge: !4246 merge master into master 剥离math下op_host/op_api到op_api Created-by: yue-ma Commit-by: yue-ma Merged-by: cann-robot Description: ## 描述 <!--在这里详细描述你的改动,包括改动的原因和所采取的方法。--> 本次变更主要对 math 目录下多个算子的目录结构进行扁平化整理:将原先嵌套在 op_host/op_api/ 中的 API 实现文件直接提升到 op_api/ 层级 ## 关联的Issue <!-- 如果这个PR是为了解决特定的Issue,请在这里提供Issue链接。--> <!-- 如果这个PR是为了解决特定的问题单,请在这里描述问题单单号。--> https://gitcode.com/cann/ops-math/issues/2392 ## 测试 <!--描述进行了哪些测试来验证你的改动。包括但不限于二级冒烟、算子泛化等。--> UT/ST通过 ## 文档更新 <!--如果这个PR包含文档的更新,请在这里指出。例如:更新了README.md文件。--> ## 类型标签 <!-- [x] 表示选中 --> - [x] Bug修复 - [ ] 新特性 - [ ] 性能优化 - [ ] 文档更新 - [ ] 其他,请描述: See merge request: cann/ops-math!4246 | 2 个月前 | |
产品名变更 Co-authored-by: gitcode-chenjiao<chenjiao31@huawei.com> # message auto-generated for no-merge-commit merge: !5912 merge master into master 产品名变更 Created-by: gitcode-chenjiao Commit-by: gitcode-chenjiao Merged-by: cann-robot Description: ## 描述 <!--在这里详细描述你的改动,包括改动的原因和所采取的方法。--> AI处理器对应的产品型号名称更新 ## 关联的Issue <!-- 如果这个PR是为了解决特定的Issue,请在这里提供Issue链接。--> <!-- 如果这个PR是为了解决特定的问题单,请在这里描述问题单单号。--> [#3258](https://gitcode.com/cann/ops-math/issues/3258) ## 测试 <!--描述进行了哪些测试来验证你的改动。包括但不限于二级冒烟、算子泛化等。--> ok ## 文档更新 <!--如果这个PR包含文档的更新,请在这里指出。例如:更新了README.md文件。--> *.md ## 类型标签 <!-- [x] 表示选中 --> - [ ] Bug修复 - [ ] 新特性 - [ ] 性能优化 - [x] 文档更新 - [ ] 其他,请描述: See merge request: cann/ops-math!5912 | 22 天前 |
HistogramV2
产品支持情况
| 产品 | 是否支持 |
|---|---|
| Ascend 950PR&950DT系列产品 | √ |
| Atlas A3系列产品 | √ |
| Atlas A2系列产品 | √ |
| Atlas 200I/500 A2推理产品 | × |
| Atlas推理系列产品 | √ |
| Atlas训练系列产品 | × |
功能说明
- 算子功能:计算张量直方图。
- 计算公式:以min和max作为统计上下限,在min和max之间划出等宽的数量为bins的区间,统计张量x中元素在各个区间的数量。如果min和max相等,则使用张量中所有元素的最小值和最大值作为统计的上下限。小于min和大于max的元素不会被统计。
参数说明
| 参数名 | 输入/输出/属性 | 描述 | 数据类型 | 数据格式 |
|---|---|---|---|---|
| x | 输入 | 公式中的输入张量x。 | FLOAT、FLOAT16、INT64、INT32、INT16、INT8、UINT8 | ND |
| min | 输入 | 公式中的输入张量min,只含有1个元素。 | FLOAT、FLOAT16、INT64、INT32、INT16、INT8、UINT8 | ND |
| max | 输入 | 公式中的输入张量max,只含有1个元素。 | FLOAT、FLOAT16、INT64、INT32、INT16、INT8、UINT8 | ND |
| y | 输出 | 输出张量,直方图的计算结果。 | INT32 | ND |
| bins | 可选属性 |
|
INT | - |
约束说明
无
调用说明
| 调用方式 | 调用样例 | 说明 |
|---|---|---|
| aclnn调用 | test_aclnn_histc | 通过aclnnHistc接口方式调用HistogramV2算子。 |
| 图模式调用 | test_geir_histogram_v2 | 通过算子IR构图方式调用HistogramV2算子。 |