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

Class WrapperModule

exir/tests/test_verification.py:22–28  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

20
21
22class WrapperModule(torch.nn.Module):
23 def __init__(self, fn):
24 super().__init__()
25 self.fn = fn
26
27 def forward(self, *args, **kwargs):
28 return self.fn(*args, **kwargs)
29
30
31class TestVerification(unittest.TestCase):

Callers 1

test_constant_bufferMethod · 0.70

Calls

no outgoing calls

Tested by 1

test_constant_bufferMethod · 0.56