i = input
o = output
p = padding
k = kernel_size
s = stride
d = dilation
o = [i + 2p - k - (k-1)(d-1)]/s + 1
当 padding= “same” 时,输入尺度和输出尺度相同。
o=i 则有:
p=[(i-1)s-i +k+(k-1)(d-1)]*0.5
假设 k=5, s=1, 那么
p=[(i-1) - i +k+(5-1)*(d-1)]0.5
p=[(k-1)+4(d-1)]*0.5
p= 2d