Class AvgPool1dImpl¶
Defined in File pooling.h
Page Contents
Inheritance Relationships¶
Base Type¶
public torch::nn::AvgPoolImpl< 1, AvgPool1dImpl >
(Template Class AvgPoolImpl)
Class Documentation¶
-
class AvgPool1dImpl : public torch::nn::AvgPoolImpl<1, AvgPool1dImpl>¶
Applies avgpool over a 1-D input.
See https://pytorch.org/docs/main/nn.html#torch.nn.AvgPool1d to learn about the exact behavior of this module.
See the documentation for
torch::nn::AvgPool1dOptions
class to learn what constructor arguments are supported for this module.Example:
AvgPool1d model(AvgPool1dOptions(3).stride(2));
Public Functions
-
Tensor forward(const Tensor &input)¶
-
Tensor forward(const Tensor &input)¶