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

Class ModelNotNeedSimplification

tests/test_python_api.py:43–48  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

41
42def test_a_model_not_need_simplification():
43 class ModelNotNeedSimplification(torch.nn.Module):
44 def __init__(self):
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 1

Calls

no outgoing calls

Tested by 1