Class ConvTranspose2dImpl

Inheritance Relationships

Base Type

Class Documentation

class ConvTranspose2dImpl : public torch::nn::ConvTransposeNdImpl<2, ConvTranspose2dImpl>

Applies the ConvTranspose2d function.

See to learn about the exact behavior of this module.

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


ConvTranspose2d model(ConvTranspose2dOptions(3, 2,

Public Functions

inline ConvTranspose2dImpl(int64_t input_channels, int64_t output_channels, ExpandingArray<2> kernel_size)
explicit ConvTranspose2dImpl(ConvTranspose2dOptions options_)
Tensor forward(const Tensor &input, const c10::optional<at::IntArrayRef> &output_size = c10::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
inline std::vector<torch::nn::AnyValue> _forward_populate_default_args(std::vector<torch::nn::AnyValue> &&arguments) override


friend struct torch::nn::AnyModuleHolder


Access comprehensive developer documentation for PyTorch

View Docs


Get in-depth tutorials for beginners and advanced developers

View Tutorials


Find development resources and get your questions answered

View Resources