小编Jim*_*ang的帖子

前导k池元素的最佳方法是什么,而不仅仅是Tensorflow中的最大元素?

现在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 …

python tensorflow

9
推荐指数
1
解决办法
3193
查看次数

标签 统计

python ×1

tensorflow ×1