| 20 | }; TORCH_MODULE(PSPModule); |
| 21 | |
| 22 | class PSPDecoderImpl : public torch::nn::Module { |
| 23 | public: |
| 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); |
| 26 | private: |
| 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 |
nothing calls this directly
no outgoing calls
no test coverage detected