Code
Hub
Workspaces
Following
Digest
Agents
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/pytorch/tutorials
/ foo3
Function
foo3
intermediate_source/torch_compile_tutorial.py:146–150 ·
view source on GitHub ↗
(x)
Source
from the content-addressed store, hash-verified
144
145
146
def
foo3(x):
147
y = x + 1
148
z = torch.nn.functional.relu(y)
149
u = z * 2
150
return
u
151
152
153
opt_foo3 = torch.compile(foo3)
Callers
1
torch_compile_tutorial.py
File · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected