Class AdaptiveMaxPool3dImpl¶
Defined in File pooling.h
Page Contents
Inheritance Relationships¶
Base Type¶
public torch::nn::AdaptiveMaxPoolImpl< 3, ExpandingArrayWithOptionalElem< 3 >, AdaptiveMaxPool3dImpl >
(Template Class AdaptiveMaxPoolImpl)
Class Documentation¶
-
class AdaptiveMaxPool3dImpl : public torch::nn::AdaptiveMaxPoolImpl<3, ExpandingArrayWithOptionalElem<3>, AdaptiveMaxPool3dImpl>¶
Applies adaptive maxpool over a 3-D input.
See https://pytorch.org/docs/main/nn.html#torch.nn.AdaptiveMaxPool3d to learn about the exact behavior of this module.
See the documentation for
torch::nn::AdaptiveMaxPool3dOptions
class to learn what constructor arguments are supported for this module.Example:
AdaptiveMaxPool3d model(AdaptiveMaxPool3dOptions(3));
Public Functions
-
Tensor forward(const Tensor &input)¶
-
std::tuple<Tensor, Tensor> forward_with_indices(const Tensor &input)¶
Returns the indices along with the outputs.
Useful to pass to nn.MaxUnpool3d.
-
Tensor forward(const Tensor &input)¶