Closed
[Bug-Report|缺陷反馈]: concat 算子在 Ascend960 平台因 padParam_ 未定义无法编译 #3636
zhanw_codingAdd on  24 days agoClosed at  24 days ago
zhanw_coding
zhanw_codingCollaborators
24 days ago Create

一、问题描述 (必填)

concat 算子在 Ascend960(ascend960dt / ascend960pr,__DAV_920R1__)平台上编译失败。

conversion/concat/op_kernel/arch35/one_axis_concat_all_align.h 的 CopyInNoSplitDim1 / CopyInSplitDim1 在 #if defined(__DAV_920R1__) 分支中调用 DataCopyPad 时传入了 padParam_,但该作用域声明的局部变量为 padParam(DataCopyPadExtParams<T> padParam{false, 0, 0, 0}),非 920R1 分支使用的也是 padParam。变量名不一致导致 Ascend960dt 分支编译报错。

二、环境信息 (可选)

• 昇腾硬件型号:Ascend960dt
• CANN版本:未提供
• 操作系统:未提供
• 其他相关软件版本:未提供

三、重现步骤 (可选)

在 Ascend960dt 编译配置下编译 concat 算子。

四、预期结果 (可选)

concat 算子在 Ascend960dt 平台编译通过;__DAV_920R1__ 分支与普通分支一致使用局部变量 padParam。

💡 备注(选填)

likedislike
zhanw_codingzhanw_codingCollaborators
24 days ago Added label: bug-report
zhanw_coding
zhanw_codingCollaborators
24 days ago Comments:

/assign

likedislike
CANN-robotCANN-robotCollaborators
24 days ago Assign zhanw_coding as responsible person
CANN-robotCANN-robotCollaborators
24 days ago Close issue
CANN-robotCANN-robotCollaborators
23 days ago Added label: resolved