Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/pytorch/tutorials
/ exp_adder
Function
exp_adder
beginner_source/introyt/autogradyt_tutorial.py:615–616 ·
view source on GitHub ↗
(x, y)
Source
from the content-addressed store, hash-verified
613
614
615
def
exp_adder(x, y):
616
return
2 * x.exp() + 3 * y
617
618
619
inputs = (torch.rand(1), torch.rand(1))
# arguments for the function
Callers
nothing calls this directly
Calls
no outgoing calls
Tested by
no test coverage detected