Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/onnxsim/onnxsim
/ forward
Method
forward
tests/test_python_api.py:86–87 ·
view source on GitHub ↗
(self, x)
Source
from the content-addressed store, hash-verified
84
super(SimpleModel, self).__init__()
85
86
def
forward(self, x):
87
return
x + 2
88
89
net = SimpleModel()
90
dummy_input = torch.randn(2, 3, 4, 5)
Callers
nothing calls this directly
Calls
no outgoing calls
Tested by
no test coverage detected