| 79 | } |
| 80 | |
| 81 | DeepLabV3DecoderImpl::DeepLabV3DecoderImpl(int in_channels, int out_channels, std::vector<int> atrous_rates) { |
| 82 | seq->push_back(ASPP(in_channels, out_channels, atrous_rates)); |
| 83 | seq->push_back(torch::nn::Conv2d(conv_options(out_channels, out_channels, 3, 1, 1, 1, false))); |
| 84 | seq->push_back(torch::nn::BatchNorm2d(torch::nn::BatchNorm2dOptions(out_channels))); |
| 85 | seq->push_back(torch::nn::ReLU()); |
| 86 | |
| 87 | register_module("seq", seq); |
| 88 | } |
| 89 | |
| 90 | torch::Tensor DeepLabV3DecoderImpl::forward(std::vector< torch::Tensor> x_list) { |
| 91 | auto x = seq->forward(x_list[x_list.size() - 1]); |
nothing calls this directly
no test coverage detected