MCPcopy 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
332def f(x):
333 return x.sin().sum()
334
335x = torch.randn(2048)
336tangent = torch.randn(2048)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected