| 18 | }; |
| 19 | |
| 20 | torch::nn::Sequential ASPPSeparableConv(int in_channels, int out_channels, int dilation) { |
| 21 | torch::nn::Sequential seq = SeparableConv2d(in_channels, out_channels, 3, 1, dilation, dilation, false); |
| 22 | seq->push_back(torch::nn::BatchNorm2d(torch::nn::BatchNorm2dOptions(out_channels))); |
| 23 | seq->push_back(torch::nn::ReLU()); |
| 24 | return seq; |
| 25 | } |
| 26 | |
| 27 | ASPPPoolingImpl::ASPPPoolingImpl(int in_channels, int out_channels) { |
| 28 | seq = torch::nn::Sequential(torch::nn::AdaptiveAvgPool2d(torch::nn::AdaptiveAvgPool2dOptions(1)), |
no test coverage detected