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

Method forward

lesson2-TensorOperations/main.cpp:28–32  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

26}
27
28torch::Tensor ConvReluBnImpl::forward(torch::Tensor x) {
29 x = torch::relu(conv->forward(x));
30 x = bn(x);
31 return x;
32}
33
34int main(int argc, char *argv[])
35{

Callers 1

mainFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected