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