Class ConstantPad2dImpl#
Defined in File padding.h
Page Contents
Inheritance Relationships#
Base Type#
public torch::nn::ConstantPadImpl< 2, ConstantPad2dImpl >
(Template Class ConstantPadImpl)
Class Documentation#
-
class ConstantPad2dImpl : public torch::nn::ConstantPadImpl<2, ConstantPad2dImpl>#
Applies ConstantPad over a 2-D input.
See https://pytorch.org/docs/main/nn.html#torch.nn.ConstantPad2d to learn about the exact behavior of this module.
See the documentation for
torch::nn::ConstantPad2dOptions
class to learn what constructor arguments are supported for this module.Example:
ConstantPad2d model(ConstantPad2dOptions({3, 0, 2, 1}, 3.5));