tf.nn.max_pool(value, ksize, strides, padding, data_format='NHWC', name=None)###
Performs the max pooling on the input.
对input进行池化
Args:
value : A 4-D Tensor with shape [batch, height, width, channels]and type tf.float32.
ksize : A list of ints that has length >= 4. The size of the window for each dimension of the input tensor.
strides : A list of ints that has length >= 4. The stride of the sliding window for each dimension of the input tensor.
padding : A string, either 'VALID'or 'SAME'. The padding algorithm. See the comment here
data_format : A string. 'NHWC' and 'NCHW' are supported.
name : Optional name for the operation.
参数:
value : 一个形状为 [batch, height, width, channels] 且 类型为 tf.float32 的四维张量.
ksize : 一个长度大于等于 4 的整数列表. input张量的每个维度的窗格大小 .
strides : 一个长度大于等于 4 的整数列表. input的每一个维度的滑动窗格的步幅.
padding : 一个为'VALID' 或 'SAME' 的字符串. 填充算法. 详情可见注解
data_format : 字符串. 目前支持 'NHWC' 和 'NCHW'.
name : 可选参数,操作的名称.
Returns:
A Tensor with type tf.float32. The max pooled output tensor.
返回值:
一个类型为tf.float32, 池化的输出张量.