Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/pytorch/tutorials
/ f
Function
f
intermediate_source/jacobians_hessians.py:332–333 ·
view source on GitHub ↗
(x)
Source
from the content-addressed store, hash-verified
330
# Here's some sample usage.
331
332
def
f(x):
333
return
x.sin().sum()
334
335
x = torch.randn(2048)
336
tangent = torch.randn(2048)
Callers
nothing calls this directly
Calls
no outgoing calls
Tested by
no test coverage detected