Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/AllentDan/LibtorchTutorials
/ forward
Method
forward
lesson3-BasicModels/MLP.cpp:15–21 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
13
}
14
15
torch::Tensor MLP::forward(torch::Tensor x){
16
x = ln1->forward(x);
17
x = ln2->forward(x);
18
x = ln3->forward(x);
19
x = out_ln->forward(x);
20
return x;
21
}
Callers
nothing calls this directly
Calls
no outgoing calls
Tested by
no test coverage detected