AdaptiveAvgPool1d

AdaptiveAvgPool1d#

class brainpy.dnn.AdaptiveAvgPool1d(target_shape, channel_axis=-1, name=None, mode=None)[source]#

Adaptive one-dimensional average down-sampling.

Parameters:
  • target_shape (int, sequence of int) – The target output shape.

  • channel_axis (int, optional) – Axis of the spatial channels for which pooling is skipped. If None, there is no channel axis.

  • name (str) – The class name.

  • mode (Mode) – The computing mode.