Rate this Page

Class ReplicationPad2dImpl#

Inheritance Relationships#

Base Type#

Class Documentation#

class ReplicationPad2dImpl : public torch::nn::ReplicationPadImpl<2, ReplicationPad2dImpl>#

Applies ReplicationPad over a 2-D input.

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

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

Example:

ReplicationPad2d model(ReplicationPad2dOptions({1, 1, 2, 0}));