Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
wrapper
Function · 0.45
test_ft_map_basic
Method · 0.45
test_ft_map_dynshape
Method · 0.45
Calls
1
add
Method · 0.45
Tested by
no test coverage detected