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

Class ModuleAdd

codegen/tools/test/test_tools_selective_build.py:23–33  ·  view source on GitHub ↗

The module to serialize and execute.

Source from the content-addressed store, hash-verified

21
22
23class ModuleAdd(torch.nn.Module):
24 """The module to serialize and execute."""
25
26 def __init__(self):
27 super(ModuleAdd, self).__init__()
28
29 def forward(self, x, y):
30 return x + y
31
32 def get_methods_to_export(self):
33 return ("forward",)
34
35
36class ModuleMulti(torch.nn.Module):

Callers 1

create_programFunction · 0.70

Calls

no outgoing calls

Tested by 1

create_programFunction · 0.56