MCPcopy Create free account
hub / github.com/AllentDan/LibtorchSegmentation / PSPDecoderImpl

Class PSPDecoderImpl

src/architectures/PSPNetDecoder.h:22–31  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

20}; TORCH_MODULE(PSPModule);
21
22class PSPDecoderImpl : public torch::nn::Module {
23public:
24 PSPDecoderImpl(std::vector<int> encoder_channels, int out_channels = 512, double dropout = 0.2, bool use_batchnorm = true, int encoder_depth = 3);
25 torch::Tensor forward(std::vector<torch::Tensor> x);
26private:
27 int encoder_depth = 3;
28 PSPModule psp{ nullptr };
29 torch::nn::Sequential conv{ nullptr };
30 torch::nn::Dropout2d dropout{ nullptr };
31}; TORCH_MODULE(PSPDecoder);
32

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected