Convolutional/Max pooling layer의 output size 계산식
1D
1D conv
Output size=StrideInput size−Kernel size+2∗Padding+1
1D deconv
Output size=(Input size−1)∗Stride+Kernel size−2∗Padding
2D
2D conv
Output height=Stride heightInput height−Kernel height+2∗Padding height+1
Outputwidth=Stride widthInput width−Kernel width+2∗Padding width+1
2D deconv
Output height=(Input height−1)∗Stride height+Kernel height−2∗Padding height
Output width=(Input width−1)∗Stride width+Kernel width−2∗Padding width
2D Maxpooling
Output size=StrideInput size−Pool size+1
3D
3D conv
Output height=Stride heightInput height−Kernel height+2∗Padding height+1
Output width=Stride widthInput width−Kernel width+2∗Padding width+1
Output depth=Stride depthInput depth−Kernel depth+2∗Padding depth+1
3D deconv
Output depth=(Input depth−1)∗Stride depth+Kernel depth−2∗Padding depth
Output height=(Input height−1)∗Stride height+Kernel height−2∗Padding height
Output width=(Input width−1)∗Stride width+Kernel width−2∗Padding width