Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
28
torch::Tensor ConvReluBnImpl::forward(torch::Tensor x) {
29
x = torch::relu(conv->forward(x));
30
x = bn(x);
31
return x;
32
}
33
34
int main(int argc, char *argv[])
35
{
Callers
1
main
Function · 0.45
Calls
no outgoing calls
Tested by
no test coverage detected