卷积输入输出维度计算公式,Conv, Dilation Conv, Padding, Kernel_size, Output的维度计算关系
definei=inputo=outputp=paddingk=kernel_sizes=strided=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.5p=[(k-