:github_url: https://github.com/pytorch/pytorch .. _program_listing_file_torch_csrc_api_include_torch_nn_modules_upsampling.h: Program Listing for File upsampling.h ===================================== |exhale_lsh| :ref:`Return to documentation for file ` (``torch/csrc/api/include/torch/nn/modules/upsampling.h``) .. |exhale_lsh| unicode:: U+021B0 .. UPWARDS ARROW WITH TIP LEFTWARDS .. code-block:: cpp #pragma once #include #include #include #include #include #include #include #include namespace torch::nn { // ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Upsample ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ class TORCH_API UpsampleImpl : public Cloneable { public: explicit UpsampleImpl(UpsampleOptions options_ = {}); void reset() override; void pretty_print(std::ostream& stream) const override; Tensor forward(const Tensor& input); UpsampleOptions options; }; TORCH_MODULE(Upsample); } // namespace torch::nn