Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/onnxsim/onnxsim
/ forward
Method
forward
tests/test_python_api.py:291–292 ·
view source on GitHub ↗
(self, x)
Source
from the content-addressed store, hash-verified
289
self.linear = torch.nn.Linear(10, 5)
290
291
def
forward(self, x):
292
return
self.linear(x)
293
294
model = MockModel()
295
dummy_input = torch.randn(1, 10)
Callers
nothing calls this directly
Calls
no outgoing calls
Tested by
no test coverage detected