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

Function ASPPSeparableConv

src/architectures/DeepLabDecoder.cpp:20–25  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

18};
19
20torch::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
27ASPPPoolingImpl::ASPPPoolingImpl(int in_channels, int out_channels) {
28 seq = torch::nn::Sequential(torch::nn::AdaptiveAvgPool2d(torch::nn::AdaptiveAvgPool2dOptions(1)),

Callers 1

ASPPImplMethod · 0.85

Calls 2

SeparableConv2dFunction · 0.85
push_backMethod · 0.80

Tested by

no test coverage detected