Closed
[Bug-Report|缺陷反馈]: 开启精度工具时Conv的op报错 #3637
luyakun_hwAdd on  Oct 22Closed at  Oct 27
luyakun_hw
luyakun_hw
Oct 22 Create

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

用例执行精度OK,开启enable_pass_verify=True精度工具后,中间有Pass校验失败,报错为conv类算子。

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

Ascend950

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

python3 xrunfk.py -i=test_cases/machine/op_combo_matrix.json -s=131 -e=131 -o=DTS_ori -r=DTS_ori/1.xlsx -d=1

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

用例执行精度OK,开启精度工具后Pass校验成功。

[2026-10-22 17:30:44][ERROR][tid:2635866] ErrCode: FB200F! Enum: ExecuteOperationScene::RUNTIME_EXCEPTION ExecuteOperation error: op TRANS_FORMAT_L0C (magic=10076) input[0] tensorMagic=829, shape=[16, 128], offset=[0, 0], dynValidShape=[16, 128], dynOffset=[]
[2026-10-22 17:30:44][ERROR][tid:2635866] ErrCode: FB200F! Enum: ExecuteOperationScene::RUNTIME_EXCEPTION ExecuteOperation error: op TRANS_FORMAT_L0C (magic=10076) output[0] tensorMagic=885, shape=[1, 128, 1, 16], offset=[0, 0, 0, 0], dynValidShape=[1, 128, 1, RUNTIME_Min(RUNTIME_Max((RUNTIME_Min(RUNTIME_Max((((((RUNTIME_Min((RUNTIME_GetInputShapeDim(ARG_fmap_t,3)-((loop_idx_i_0+1)*16)), 16)-0)-1)/1)+1)-0), 0), 16)-0), 0), 16)], dynOffset=[]
[2026-10-22 17:30:44][ERROR][tid:2635866] ErrCode: FB4001! Enum: VerifyResultScene::VERIFY_RESULT_MISMATCH VerifyPass failed for function cv_1c1v_chain_single_conv_kernel_loop_idx_i_Unroll2_PATH0_hiddenfunc_8, pass ExpandFunction (passIndex: 5, captureIndex: 0): 12305441997481281902, 14716619575894766443, 10076, TRANS_FORMAT_L0COpError
func: cv_1c1v_chain_single_conv_kernel_loop_idx_i_Unroll2_PATH0_hiddenfunc

<1x128x1x16xDT_FP16 / 1x128x1xRUNTIME_Min(RUNTIME_Max((RUNTIME_Min(RUNTIME_Max((((((RUNTIME_Min((RUNTIME_GetInputShapeDim(ARG_fmap_t,3)-((loop_idx_i_0+1)16)), 16)-0)-1)/1)+1)-0), 0), 16)-0), 0), 16)xDT_FP16> %885@659#(-1)MEM_UNKNOWN::MEM_UNKNOWN = !10076 TILE_TRANS_FORMAT_L0C(g:-1, s:-1) %829@603#(-1)MEM_UNKNOWN::MEM_UNKNOWN #COPY_OUT_MODE{3} #CUT_W{16} #IS_CONV3D{0} #L0C_VALID_MN{[(1RUNTIME_Min(RUNTIME_Max((RUNTIME_Min(RUNTIME_Max((((((RUNTIME_Min((RUNTIME_GetInputShapeDim(ARG_fmap_t,3)-((loop_idx_i_0+1)*16)), 16)-0)-1)/1)+1)-0), 0), 16)-0), 0), 16)),128]} #REAL_CUT_W{RUNTIME_Min(RUNTIME_Max((RUNTIME_Min(RUNTIME_Max((((((RUNTIME_Min((RUNTIME_GetInputShapeDim(ARG_fmap_t,3)-((loop_idx_i_0+1)*16)), 16)-0)-1)/1)+1)-0), 0), 16)-0), 0), 16)} #RELU_TYPE{0} #isConv{1}
<1x128x1x16xFP16/1x128x1x4xFP16> = TRANS_FORMAT_L0C <16x128xFP16/16x128xFP16>
The size of tensor a (4) must match the size of tensor b (16) at non-singleton dimension 3

[2026-10-22 17:30:45][ERROR][tid:2635866] ErrCode: FB200F! Enum: ExecuteOperationScene::RUNTIME_EXCEPTION ExecuteOperation error: op L1_COPY_IN_CONV (magic=10069) input[0] tensorMagic=100, shape=[1, 128, 1, -1], offset=[0, 0, 0, 0], dynValidShape=[1, 128, 1, RUNTIME_GetInputShapeDim(ARG_fmap_t,3)], dynOffset=[]
[2026-10-22 17:30:45][ERROR][tid:2635866] ErrCode: FB200F! Enum: ExecuteOperationScene::RUNTIME_EXCEPTION ExecuteOperation error: op L1_COPY_IN_CONV (magic=10069) output[0] tensorMagic=879, shape=[1, 1, 1, 16, 16], offset=[0, 0, 0, 0, 0], dynValidShape=[1, 1, 1, 16, 16], dynOffset=[]
[2026-10-22 17:30:45][ERROR][tid:2635866] ErrCode: FB4001! Enum: VerifyResultScene::VERIFY_RESULT_MISMATCH VerifyPass failed for function cv_1c1v_chain_single_conv_kernel_loop_idx_i_Unroll2_PATH0_hiddenfunc_8, pass PreGraphProcess (passIndex: 28, captureIndex: 0): 12305441997481281902, 14716619575894766443, 10069, L1_COPY_IN_CONVOpError
func: cv_1c1v_chain_single_conv_kernel_loop_idx_i_Unroll2_PATH0_hiddenfunc

<1x1x1x16x16xDT_FP16 / 1x1x1x16x16xDT_FP16> %879@653#(2)MEM_L1::MEM_L1 = !10069 TILE_L1_COPY_IN_CONV(g:2, s:-1) %100@54#(2)MEM_DEVICE_DDR::MEM_DEVICE_DDR shape[ 1,128, 1, 16],rawshape[ 1,128, 1,RUNTIME_GetInputShapeDim(ARG_fmap_t,3)], from offset:[ 0,112, 0,((loop_idx_i_0*16)+16)] to MEM_L1 dynvalidshape:[ 1, 1, 1, 16, 16] #COPY_IN_MODE{3} #FILTER_H{1} #FILTER_W{1} #IS_CONV3D{0} #IS_CUBE{1} #IS_FMAP{1} #cube_merge_hashOrder{func9_0} #cube_merge_subgraphCount{2} #isConv{1} #l1_reuse_hashOrder{func9_0} #l1_reuse_subgraphCount{2} #op_attr_inner_value{16} #op_attr_is_nz{0} #op_attr_outer_value{16}
<1x1x1x16x16xFP16/1x1x1x16x16xFP16> = L1_COPY_IN_CONV <1x128x1x-1xFP16/1x128x1x20xFP16>
setStorage: sizes [1, 16, 1, 16], strides [2560, 20, 20, 1], storage offset 2256, and itemsize 2 requiring a storage size of 5144 are out of bounds for storage of size 5120
Exception raised from checkInBoundsForStorage at /pytorch/aten/src/ATen/native/Resize.h:109 (most recent call first):

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

likedislike
luyakun_hw
luyakun_hw
Oct 22 Comments:

/assign

likedislike
CANN-robotCANN-robotCollaborators
Oct 22 Assign luyakun_hw as responsible person
luyakun_hwluyakun_hw
Oct 26 Associated pull request
CANN-robotCANN-robotCollaborators
Oct 27 Close issue
CANN-robotCANN-robotCollaborators
Oct 27 Added label: resolved