Rate this Page

Class AdaptiveAvgPool1dImpl#

Inheritance Relationships#

Base Type#

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)#