Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/pytorch/executorch
/ forward
Method
forward
test/models/export_program.py:96–97 ·
view source on GitHub ↗
(self, x, y, alpha)
Source
from the content-addressed store, hash-verified
94
super(ModuleAdd, self).__init__()
95
96
def
forward(self, x, y, alpha):
97
return
torch.add(x, y, alpha=alpha)
98
99
def
get_random_inputs(self):
100
return
(torch.randn(2, 2), torch.randn(2, 2), 1.0)
Callers
nothing calls this directly
Calls
1
add
Method · 0.45
Tested by
no test coverage detected