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

Class WrapperModule

exir/tests/test_delegate.py:29–35  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

27
28
29class WrapperModule(torch.nn.Module):
30 def __init__(self, fn):
31 super().__init__()
32 self.fn = fn
33
34 def forward(self, *args, **kwargs):
35 return self.fn(*args, **kwargs)
36
37
38class TestDelegate(unittest.TestCase):

Callers 1

test_call_delegateMethod · 0.70

Calls

no outgoing calls

Tested by 1

test_call_delegateMethod · 0.56