MCPcopy Create free account
hub / github.com/pytorch/executorch / WrapModule

Class WrapModule

exir/tests/test_print_program.py:31–37  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

29 return self.gelu(c)
30
31 class WrapModule(torch.nn.Module):
32 def __init__(self):
33 super().__init__()
34 self.test_model = TestModel()
35
36 def forward(self, x):
37 return self.test_model(x)
38
39 warp_model = WrapModule()
40 example_inputs = (torch.rand(1, 32, 16, 16),)

Callers 1

test_inspect_nodeMethod · 0.85

Calls

no outgoing calls

Tested by 1

test_inspect_nodeMethod · 0.68