| 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 |
no outgoing calls