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

Method PANDecoderImpl

src/architectures/PANDecoder.cpp:98–108  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

96}
97
98PANDecoderImpl::PANDecoderImpl(std::vector<int> encoder_channels, int decoder_channels, std::string upscale_mode) {
99 fpa = FPABlock(encoder_channels[encoder_channels.size() - 1], decoder_channels);
100 gau3 = GAUBlock(encoder_channels[encoder_channels.size() - 2], decoder_channels, upscale_mode);
101 gau2 = GAUBlock(encoder_channels[encoder_channels.size() - 3], decoder_channels, upscale_mode);
102 gau1 = GAUBlock(encoder_channels[encoder_channels.size() - 4], decoder_channels, upscale_mode);
103
104 register_module("fpa", fpa);
105 register_module("gau3", gau3);
106 register_module("gau2", gau2);
107 register_module("gau1", gau1);
108}
109
110torch::Tensor PANDecoderImpl::forward(std::vector<torch::Tensor> features) {
111 auto bottleneck = features[features.size() - 1];

Callers

nothing calls this directly

Calls 1

sizeMethod · 0.45

Tested by

no test coverage detected