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

Method __init__

codegen/tools/test/test_tools_selective_build.py:61–63  ·  view source on GitHub ↗
(self, fn)

Source from the content-addressed store, hash-verified

59
60 class WrapperModule(torch.nn.Module):
61 def __init__(self, fn):
62 super().__init__()
63 self.fn = fn
64
65 def forward(self, *args, **kwargs):
66 return self.fn(*args, **kwargs)

Callers

nothing calls this directly

Calls 1

__init__Method · 0.45

Tested by

no test coverage detected