tf.nn.avg_pool1d

View source on GitHub

Performs the average pooling on the input.

tf.nn.avg_pool1d(
    input, ksize, strides, padding, data_format='NWC', name=None
)

Each entry in output is the mean of the corresponding size ksize window in value.

Note internally this op reshapes and uses the underlying 2d operation.

Args:

Returns:

A Tensor of format specified by data_format. The max pooled output tensor.