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

Method __init__

test/models/export_delegated_program.py:148–151  ·  view source on GitHub ↗
(self, fn, method_name=method_name)

Source from the content-addressed store, hash-verified

146
147 class WrapperModule(torch.nn.Module):
148 def __init__(self, fn, method_name=method_name):
149 super().__init__()
150 self.fn = fn
151 self.method_name = method_name
152
153 def forward(self, *args, **kwargs):
154 return getattr(self.fn, self.method_name)(*args, **kwargs)

Callers

nothing calls this directly

Calls 1

__init__Method · 0.45

Tested by

no test coverage detected