MCPcopy Create free account
hub / github.com/onnxsim/onnxsim / forward

Method forward

tests/test_python_api.py:47–48  ·  view source on GitHub ↗
(self, x)

Source from the content-addressed store, hash-verified

45 super(ModelNotNeedSimplification, self).__init__()
46
47 def forward(self, x):
48 return x + 1
49
50 net = ModelNotNeedSimplification()
51 dummy_input = torch.randn(2, 3, 4, 5)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected