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

Method forward

lesson6-Segmentation/util.cpp:8–12  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

6 register_module("conv2d",conv2d);
7}
8torch::Tensor SegmentationHeadImpl::forward(torch::Tensor x){
9 x = conv2d->forward(x);
10 x = upsampling->forward(x);
11 return x;
12}
13
14std::string replace_all_distinct(std::string str, const std::string old_value, const std::string new_value)
15{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected