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

Method __init__

exir/tests/test_delegate.py:30–32  ·  view source on GitHub ↗
(self, fn)

Source from the content-addressed store, hash-verified

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)

Callers 1

__init__Method · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected