ARM compute library deconvolution validate() function boundary check

In ARM compute libarary 21.08 deconvolution validate() function has a boundary check, https://github.com/ARM-software/ComputeLibrary/blob/v21.08/src/runtime/NEON/functions/NEDeconvolutionLayer.cpp

code portion:

const unsigned int out_x = (input->dimension(idx_w) - 1) * stride_x + 1;

ARM_COMPUTE_RETURN_ERROR_ON(weights->dimension(idx_w) > out_x);

Is this check correct? Since It violate for input weight as 1, weight width as 2 and stride as 2.

Parents Reply Children
No data