在
tf.nn.max_pool
的定义中,ksize
有什么用处?tf.nn.max_pool(value, ksize, strides, padding, data_format='NHWC', name=None)
Performs the max pooling on the 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.
例如,如果一个是张量:[1, 64, 64, 3]
,ksize=3
。那是什么意思呢?