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