tf.nn.conv2d(input, filter, strides, padding, use_cudnn_on_gpu=None, name=None),
第一个参数input:Tensor,[batch, in_height, in_width, in_channels]
第二个参数filter:Tensor,
[filter_height, filter_width, in_channels, out_channels]。
Tensor,
[filter_height, filter_width, in_channels, out_channels]。
第三个参数strides
第四个参数padding:string类型的量,只能是"SAME","VALID"其中之一
当时same时,分两种情况。
1)strides=1:
此时,输出size不变
2)strides不等1:
给据p=(f-1)/2
N=(n+2p-f)/strides计算得到size
结果返回一个Tensor,这个输出,就是我们常说的feature map,输出格式和输入格式相同。