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

Method __init__

exir/program/test/test_program.py:123–125  ·  view source on GitHub ↗
(self, fn)

Source from the content-addressed store, hash-verified

121
122class WrapperModule(torch.nn.Module):
123 def __init__(self, fn):
124 super().__init__()
125 self.fn = fn
126
127 def forward(self, *args, **kwargs):
128 return self.fn(*args, **kwargs)

Callers

nothing calls this directly

Calls 1

__init__Method · 0.45

Tested by

no test coverage detected