Rate this Page

Class FractionalMaxPool3dImpl#

Inheritance Relationships#

Base Type#

Class Documentation#

class FractionalMaxPool3dImpl : public torch::nn::Cloneable<FractionalMaxPool3dImpl>#

Applies fractional maxpool over a 3-D input.

See https://pytorch.org/docs/main/nn.html#torch.nn.FractionalMaxPool3d to learn about the exact behavior of this module.

See the documentation for torch::nn::FractionalMaxPool3dOptions class to learn what constructor arguments are supported for this module.

Example:

FractionalMaxPool3d model(FractionalMaxPool3dOptions(5).output_size(1));

Public Functions

inline FractionalMaxPool3dImpl(ExpandingArray<3> kernel_size)#
explicit FractionalMaxPool3dImpl(FractionalMaxPool3dOptions options_)#
virtual void reset() override#

reset() must perform initialization of all members with reference semantics, most importantly parameters, buffers and submodules.

virtual void pretty_print(std::ostream &stream) const override#

Pretty prints the FractionalMaxPool3d module into the given stream.

Tensor forward(const Tensor &input)#
std::tuple<Tensor, Tensor> forward_with_indices(const Tensor &input)#

Returns the outputs and the indices of the max values.

Useful for torch::nn::MaxUnpool3d later.

Public Members

FractionalMaxPool3dOptions options#

The options with which this Module was constructed.

Tensor _random_samples#