Last chance! 50% off unlimited learning
Sale ends in
powered by
Avg_pool1d
torch_avg_pool1d( self, kernel_size, stride = list(), padding = 0L, ceil_mode = FALSE, count_include_pad = TRUE )
input tensor of shape \((\mbox{minibatch} , \mbox{in\_channels} , iW)\)
the size of the window. Can be a single number or a tuple (kW,)
(kW,)
the stride of the window. Can be a single number or a tuple (sW,). Default: kernel_size
(sW,)
kernel_size
implicit zero paddings on both sides of the input. Can be a single number or a tuple (padW,). Default: 0
(padW,)
when TRUE, will use ceil instead of floor to compute the output shape. Default: FALSE
TRUE
ceil
floor
FALSE
when TRUE, will include the zero-padding in the averaging calculation. Default: TRUE
Applies a 1D average pooling over an input signal composed of several input planes.
See nn_avg_pool1d() for details and output shape.
nn_avg_pool1d()