Convolution: https://blog.csdn.net/tlzhatao/article/details/84541830 (directly to the formula)
https://blog.csdn.net/liuweiyuxiang/article/details/88111943 (say this in some detail)
pytorch VALID mode is default, thus, according to the first URL can be calculated directly
Deconvolution: https://zhuanlan.zhihu.com/p/39240159