美文网首页
tensorflow卷积的输入输出维度

tensorflow卷积的输入输出维度

作者: ClarenceHoo | 来源:发表于2017-09-21 17:17 被阅读0次

对于input为batch,input_length,input_width,channal_in
filter为f_l,f_w,channel_in,channel_out
strides为1,s,s,1而言
输出维度为
batch,out_l,out_w,channel_out
若padding=”VALID“,那么
out_l=[(input_l-f_l)/s]+1
若padding="SAME",相当于对input的width两端进行了长度为(f_l-1)/2的补0,那么
out_l=[(input_l+2*(f_l-1)/2-f_l)/s]+1=[(input-1)/s]+1
PADDING的直观在数据计算上的好处是在s|input时,out_l=input_l/s
其实际的意义在于保留输入层的边缘信息

相关文章

网友评论

      本文标题:tensorflow卷积的输入输出维度

      本文链接:https://www.haomeiwen.com/subject/gmktextx.html