MCPcopy Create free account
hub / github.com/AllentDan/LibtorchTutorials / CenterBlock

Function CenterBlock

lesson6-Segmentation/UNetDecoder.cpp:60–63  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

58}
59
60torch::nn::Sequential CenterBlock(int in_channels, int out_channels){
61 return torch::nn::Sequential(Conv2dReLU(in_channels, out_channels, 3, 1),
62 Conv2dReLU(out_channels, out_channels, 3, 1));
63}
64
65UNetDecoderImpl::UNetDecoderImpl(std::vector<int> encoder_channels, std::vector<int> decoder_channels, int n_blocks,
66 bool use_attention, bool use_center)

Callers 1

UNetDecoderImplMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected