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

Method DeepLabV3DecoderImpl

src/architectures/DeepLabDecoder.cpp:81–88  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

79}
80
81DeepLabV3DecoderImpl::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
90torch::Tensor DeepLabV3DecoderImpl::forward(std::vector< torch::Tensor> x_list) {
91 auto x = seq->forward(x_list[x_list.size() - 1]);

Callers

nothing calls this directly

Calls 2

conv_optionsFunction · 0.85
push_backMethod · 0.80

Tested by

no test coverage detected