TensorFLow 函數翻譯 — tf.nn.max_pool()

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

最后編輯于
?著作權歸作者所有,轉載或內容合作請聯系作者
平臺聲明:文章內容(如有圖片或視頻亦包括在內)由作者上傳并發布,文章內容僅代表作者本人觀點,簡書系信息發布平臺,僅提供信息存儲服務。

推薦閱讀更多精彩內容