反卷积与卷积:https://buptldy.github.io/2016/10/29/2016-10-29-deconv/
caffe 卷积与反卷积后维度计算方式:
对于convolution过程:
output = (input + 2 * p - k) / s + 1;
对于deconvolution过程:
output = (input - 1) * s + k - 2 * p;
其中,input为输入维度,s为stride;k为kernel_size;p表示pad,默认为0.