MCPcopy 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

38else:
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_latencyFunction · 0.70
timedFunction · 0.70
timedFunction · 0.70
torch_logs.pyFile · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected