Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/pytorch/tutorials
/ f
Function
f
intermediate_source/autograd_saved_tensors_hooks_tutorial.py:95–96 ·
view source on GitHub ↗
(x)
Source
from the content-addressed store, hash-verified
93
#
94
95
def
f(x):
96
return
x * x
97
98
x = torch.randn(5, requires_grad=True)
99
y = f(f(f(x)))
Callers
2
autograd_saved_tensors_hooks_tutorial.py
File · 0.70
unpack
Function · 0.70
Calls
no outgoing calls
Tested by
no test coverage detected