Skip to content

Commit 7a32c20

Browse files
luweizhou2016azhai219
authored andcommitted
[Fork][Fix] Deconv update the limitation.
1 parent 64e26dd commit 7a32c20

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

src/common/deconvolution.cpp

+6-2
Original file line numberDiff line numberDiff line change
@@ -131,8 +131,12 @@ status_t deconv_desc_init(deconvolution_desc_t *deconv_desc,
131131
dim_t ker_range = 1 + (ker - 1) * (dil + 1);
132132

133133
VCHECK_DECONV(str > 0, VERBOSE_BAD_DIM, "strides", i - 2);
134-
VCHECK_DECONV(dil >= 0 && pad_l >= 0 && pad_r + str > 0,
135-
VERBOSE_INCONSISTENT_PRB);
134+
// VCHECK_DECONV(dil >= 0 && pad_l >= 0 && pad_r + str > 0,
135+
// VERBOSE_INCONSISTENT_PRB);
136+
//WA: OV has feature to set output shape, which would cause specified output space dims are larger than deconv actural space dims.
137+
// Need to extra padding on the space dims. pad_r < 0 && pad_r + str <=0 in these test cases.
138+
VCHECK_DECONV(dil >= 0 && pad_l >= 0,
139+
VERBOSE_INCONSISTENT_PRB);
136140
VCHECK_DECONV((dst - ker_range + pad_l + pad_r) / str + 1 == src,
137141
VERBOSE_INCONSISTENT_PRB);
138142
}

0 commit comments

Comments
 (0)