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

Method forward

test/end2end/test_end2end.py:147–150  ·  view source on GitHub ↗
(self, d)

Source from the content-addressed store, hash-verified

145 super(ModuleContainers, self).__init__()
146
147 def forward(self, d):
148 a = d["a"]
149 b = d["b"]
150 return {"inputs": (a, b), "c": torch.add(a, b)}
151
152 def get_random_inputs(self):
153 return ({"a": torch.randn(2, 2), "b": torch.randn(2, 2)},)

Callers

nothing calls this directly

Calls 1

addMethod · 0.45

Tested by

no test coverage detected