Shortcuts

Class AdaptiveAvgPool1dImpl

Inheritance Relationships

Base Type

Class Documentation

class torch::nn::AdaptiveAvgPool1dImpl : public torch::nn::AdaptiveAvgPoolImpl<1, ExpandingArray<1>, AdaptiveAvgPool1dImpl>

Applies adaptive avgpool over a 1-D input.

See https://pytorch.org/docs/master/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)

Docs

Access comprehensive developer documentation for PyTorch

View Docs

Tutorials

Get in-depth tutorials for beginners and advanced developers

View Tutorials

Resources

Find development resources and get your questions answered

View Resources