Code
Hub
Workspaces
Following
Digest
Agents
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/pytorch/tutorials
/ fn
Function
fn
recipes_source/torch_logs.py:40–42 ·
view source on GitHub ↗
(x, y)
Source
from the content-addressed store, hash-verified
38
else
:
39
@torch.compile()
40
def
fn(x, y):
41
z = x + y
42
return
z + 2
43
44
45
inputs = (torch.ones(2, 2, device=
"cuda"
), torch.zeros(2, 2, device=
"cuda"
))
Callers
4
measure_latency
Function · 0.70
timed
Function · 0.70
timed
Function · 0.70
torch_logs.py
File · 0.70
Calls
no outgoing calls
Tested by
no test coverage detected