Code
Hub
Workspaces
Following
Digest
Agents
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/pytorch/tutorials
/ outer
Function
outer
intermediate_source/torch_compile_tutorial.py:102–105 ·
view source on GitHub ↗
(x, y)
Source
from the content-addressed store, hash-verified
100
101
@torch.compile
102
def
outer(x, y):
103
a = inner(x)
104
b = torch.cos(y)
105
return
a + b
106
107
108
print(outer(torch.randn(3, 3), torch.randn(3, 3)))
Callers
1
torch_compile_tutorial.py
File · 0.70
Calls
1
inner
Function · 0.70
Tested by
no test coverage detected