已关闭
[Bug-Report|缺陷反馈]: AvgPoolV2Grad算子对不同数据格式的兼容性 #1871
ideal_创建于  3月31日关闭于  4月2日
ideal_
ideal_成员
3月31日 创建

Thanks for sending an issue! Please fill in the following template to help quickly solve your problem.

Describe the current behavior / 问题描述 (Mandatory / 必填)

本次PR主要对平均池化相关算子进行了功能完善、缺陷修复和代码优化。
核心内容包括:
1)更新了二维平均池化反向传播算子(aclnnAvgPool2dBackward)的API文档,明确了stride参数支持长度为0(即stride=kernelSize)的用法;
2)修复了平均池化V2梯度算子(AvgPoolV2Grad)在推理数据类型时的一个索引错误,确保输出数据类型与正确的输入张量保持一致;
3)为AvgPoolV2Grad算子配置文件添加了格式无关性支持,以提升算子对不同数据格式的兼容性;
4)重构了该算子内核的tiling数据注册逻辑,通过模板选择机制简化了代码,提升了可维护性。

Environment / 环境信息 (Mandatory / 必填)

Ascend950

Steps to reproduce the issue / 重现步骤 (Mandatory / 必填)

静态单算子输入为具体的format,出现二进制不匹配

Describe the expected behavior / 预期结果 (Mandatory / 必填)

正常执行

2026-03-31 16:39:12,121 [ERROR] [2828734 AvgPoolV2_bf16_NHWC_random_000104 OnBinCompilation] [dynamic_compilation.py:75]: Binary kernel match failed.

Special notes for this issue/备注 (Optional / 选填)

likedislike
ideal_ideal_成员
3月31日 添加了label:bug-report
CANN-robotCANN-robot成员
4月2日 关闭了 issue
CANN-robotCANN-robot成员
4月2日 添加了label:resolved
Wwangcimeng成员
5月22日 关联了pull request:[conv]修复代码检视识别的group preload特性问题