Shortcuts

Class FractionalMaxPool3dImpl

Inheritance Relationships

Base Type

Class Documentation

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

Applies fractional maxpool over a 3-D input.

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

FractionalMaxPool3dImpl(ExpandingArray<3> kernel_size)
FractionalMaxPool3dImpl(const FractionalMaxPool3dOptions &options_)
void reset() override

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

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

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