标签:计算 kernel latex lin mat stride add 练习 html
公式来自官方文档,戳->(Conv3d — PyTorch master documentation)
本文仅作记录,顺便练习Latex语法
\(D_{out}=\frac{D_{in}+2\times padding[0]-dilation[0]\times(kernel\_size[0]-1)-1}{stride[0]}-1\)
\(H_{out}=\frac{H_{in}+2\times padding[1]-dilation[1]\times(kernel\_size[1]-1)-1}{stride[1]}-1\)
\(W_{out}=\frac{W_{in}+2\times padding[2]-dilation[2]\times(kernel\_size[2]-1)-1}{stride[2]}-1\)
如果默认dilation=1的话:
\(D_{out}=\frac{D_{in}+2\times padding[0]-(kernel\_size[0]-1)-1}{stride[0]}-1\)
\(H_{out}=\frac{H_{in}+2\times padding[1]-(kernel\_size[1]-1)-1}{stride[1]}-1\)
\(W_{out}=\frac{W_{in}+2\times padding[2]-(kernel\_size[2]-1)-1}{stride[2]}-1\)
如果默认dilation=1, stride=1的话:
\(D_{out}=D_{in}+2\times padding[0]-(kernel\_size[0]-1)-2\)
\(H_{out}=H_{in}+2\times padding[1]-(kernel\_size[1]-1)-2\)
\(W_{out}=W_{in}+2\times padding[2]-(kernel\_size[2]-1)-2\)
标签:计算 kernel latex lin mat stride add 练习 html
原文地址:https://www.cnblogs.com/geoli/p/13019047.html