Class ConvTranspose1dImpl¶
Defined in File conv.h
Page Contents
Inheritance Relationships¶
Base Type¶
public torch::nn::ConvTransposeNdImpl< 1, ConvTranspose1dImpl >
(Template Class ConvTransposeNdImpl)
Class Documentation¶
-
class ConvTranspose1dImpl : public torch::nn::ConvTransposeNdImpl<1, ConvTranspose1dImpl>¶
Applies the ConvTranspose1d function.
See https://pytorch.org/docs/main/nn.html#torch.nn.ConvTranspose1d to learn about the exact behavior of this module.
See the documentation for
torch::nn::ConvTranspose1dOptions
class to learn what constructor arguments are supported for this module.Example:
ConvTranspose1d model(ConvTranspose1dOptions(3, 2, 3).stride(1).bias(false));
Public Functions
-
inline ConvTranspose1dImpl(int64_t input_channels, int64_t output_channels, ExpandingArray<1> kernel_size)¶
-
explicit ConvTranspose1dImpl(ConvTranspose1dOptions options_)¶
-
Tensor forward(const Tensor &input, const std::optional<at::IntArrayRef> &output_size = std::nullopt)¶
Protected Functions
-
inline virtual bool _forward_has_default_args() override¶
The following three functions allow a module with default arguments in its forward method to be used in a Sequential module.
You should NEVER override these functions manually. Instead, you should use the
FORWARD_HAS_DEFAULT_ARGS
macro.
-
inline virtual unsigned int _forward_num_required_args() override¶
Friends
- friend struct torch::nn::AnyModuleHolder
-
inline ConvTranspose1dImpl(int64_t input_channels, int64_t output_channels, ExpandingArray<1> kernel_size)¶