layers.MaxPooling1D

@tf_export(v1=['layers.MaxPooling1D'])
class MaxPooling1D(keras_layers.MaxPooling1D, base.Layer):
  """Max Pooling layer for 1D inputs.
用于1维输入的MaxPooling层。

  Arguments:
    pool_size: An integer or tuple/list of a single integer,
      representing the size of the pooling window.
pool_size:int,表示pooling window的大小。

    strides: An integer or tuple/list of a single integer, specifying the
      strides of the pooling operation.
strides:int,指定pooling操作的步长。

    padding: A string. The padding method, either 'valid' or 'same'.
      Case-insensitive.
padding:string,valid或same,大小写不敏感。

    data_format: A string, one of `channels_last` (default) or `channels_first`.
      The ordering of the dimensions in the inputs.
      `channels_last` corresponds to inputs with shape
      `(batch, length, channels)` while `channels_first` corresponds to
      inputs with shape `(batch, channels, length)`.
date_format:string,channels_last(默认)或channels_first。inputs输入的维度。channels_last表示inputs的形状是(batch, length, channels);channels_first表示inputs的形状是(batch, channels, length)。

    name: A string, the name of the layer.
  """

posted @ 2020-07-31 17:45  ZH奶酪  阅读(132)  评论(0编辑  收藏