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

Method forward

lesson7-Detection/src/models/yolo4_tiny.cpp:13–18  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

11}
12
13torch::Tensor UpsampleImpl::forward(torch::Tensor x)
14{
15 x = upsample->forward(x);
16 x = at::upsample_nearest2d(x, { x.sizes()[2] * 2 , x.sizes()[3] * 2 });
17 return x;
18}
19
20torch::nn::Sequential yolo_head(std::vector<int> filters_list, int in_filters) {
21 auto m = torch::nn::Sequential(BasicConv(in_filters, filters_list[0], 3),

Callers 3

TrainMethod · 0.45
PredictMethod · 0.45
PredictFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected