Program Listing for File upsampling.h¶
↰ Return to documentation for file (torch/csrc/api/include/torch/nn/modules/upsampling.h
)
#pragma once
#include <torch/nn/cloneable.h>
#include <torch/nn/functional/upsampling.h>
#include <torch/nn/options/upsampling.h>
#include <torch/nn/pimpl.h>
#include <torch/types.h>
#include <torch/csrc/Export.h>
#include <cstddef>
#include <ostream>
namespace torch {
namespace nn {
// ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Upsample ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
class TORCH_API UpsampleImpl : public Cloneable<UpsampleImpl> {
public:
explicit UpsampleImpl(const UpsampleOptions& options_ = {});
void reset() override;
void pretty_print(std::ostream& stream) const override;
Tensor forward(const Tensor& input);
UpsampleOptions options;
};
TORCH_MODULE(Upsample);
} // namespace nn
} // namespace torch