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