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

Method forward

lesson7-Detection/src/models/CSPdarknet53_tiny.cpp:15–21  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

13}
14
15torch::Tensor BasicConvImpl::forward(torch::Tensor x)
16{
17 x = conv->forward(x);
18 x = bn->forward(x);
19 x = acitivation(x);
20 return x;
21}
22
23
24Resblock_bodyImpl::Resblock_bodyImpl(int in_channels, int out_channels) {

Callers

nothing calls this directly

Calls 1

splitFunction · 0.85

Tested by

no test coverage detected