Applies a 1D power-average pooling over an input signal composed of
several input planes. If the sum of all inputs to the power of p
is
zero, the gradient is set to zero as well.
nnf_lp_pool1d(input, norm_type, kernel_size, stride = NULL, ceil_mode = FALSE)
the input tensor
if inf than one gets max pooling if 0 you get sum pooling ( proportional to the avg pooling)
a single int, the size of the window
a single int, the stride of the window. Default value is kernel_size
when True, will use ceil instead of floor to compute the output shape