现在tensorflow中的最大池函数是
tf.nn.max_pool(value, ksize, strides, padding, name=None) Returns: A Tensor with type tf.float32. The max pooled output tensor.
我想有一个扩展版本的max_pool,比如
tf.nn.top_k_pool(value, ksize, strides, padding, k=1, name=None) Performs the top k 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. strides: A list of ints that has length >= 4. The stride …