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

Method forward

lesson6-Segmentation/UNetDecoder.cpp:16–19  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

14}
15
16torch::Tensor SCSEModuleImpl::forward(torch::Tensor x){
17 if(!use_attention) return x;
18 return x * cSE->forward(x) + x * sSE->forward(x);
19}
20
21Conv2dReLUImpl::Conv2dReLUImpl(int in_channels, int out_channels, int kernel_size, int padding){
22 conv2d = torch::nn::Conv2d(conv_options(in_channels,out_channels,kernel_size,1,padding));

Callers

nothing calls this directly

Calls 5

beginFunction · 0.85
endFunction · 0.85
eraseMethod · 0.80
beginMethod · 0.80
sizeMethod · 0.45

Tested by

no test coverage detected