Shortcuts

Class ReflectionPad2dImpl

Inheritance Relationships

Base Type

Class Documentation

class ReflectionPad2dImpl : public torch::nn::ReflectionPadImpl<2, ReflectionPad2dImpl>

Applies ReflectionPad over a 2-D input.

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

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

Example:

ReflectionPad2d model(ReflectionPad2dOptions({1, 1, 2, 0}));

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