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, 池化的輸出張量.