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

Method forward

test/end2end/test_end2end.py:110–111  ·  view source on GitHub ↗
(self, x, y)

Source from the content-addressed store, hash-verified

108 super(ModuleAdd, self).__init__()
109
110 def forward(self, x, y):
111 return torch.add(x, y)
112
113 def get_random_inputs(self):
114 return (torch.randn(2, 2), torch.randn(2, 2))

Callers 3

wrapperFunction · 0.45
test_ft_map_basicMethod · 0.45
test_ft_map_dynshapeMethod · 0.45

Calls 1

addMethod · 0.45

Tested by

no test coverage detected