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

Class WrapperModule

extension/pybindings/test/make_test.py:167–173  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

165 input_map[method] = inputs
166
167 class WrapperModule(torch.nn.Module):
168 def __init__(self, fn):
169 super().__init__()
170 self.fn = fn
171
172 def forward(self, *args, **kwargs):
173 return self.fn(*args, **kwargs)
174
175 exported_methods = {}
176 # These cleanup passes are required to convert the `add` op to its out

Callers 1

create_programFunction · 0.70

Calls

no outgoing calls

Tested by 1

create_programFunction · 0.56