Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/onnxsim/onnxsim
/ __init__
Method
__init__
tests/test_python_api.py:287–289 ·
view source on GitHub ↗
(self)
Source
from the content-addressed store, hash-verified
285
def
_create_dummy_model():
286
class
MockModel(torch.nn.Module):
287
def
__init__(self):
288
super(MockModel, self).__init__()
289
self.linear = torch.nn.Linear(10, 5)
290
291
def
forward(self, x):
292
return
self.linear(x)
Callers
4
__init__
Method · 0.45
__init__
Method · 0.45
__init__
Method · 0.45
__init__
Method · 0.45
Calls
no outgoing calls
Tested by
no test coverage detected