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

Method __init__

exir/tests/test_verification.py:23–25  ·  view source on GitHub ↗
(self, fn)

Source from the content-addressed store, hash-verified

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)

Callers 3

__init__Method · 0.45
__init__Method · 0.45
__init__Method · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected