MCPcopy Create free account
hub / github.com/pytorch/tutorials / f

Function f

unstable_source/vmap_recipe.py:85–86  ·  view source on GitHub ↗
(x)

Source from the content-addressed store, hash-verified

83# Setup
84N = 5
85def f(x):
86 return x ** 2
87
88x = torch.randn(N, requires_grad=True)
89y = f(x)

Callers 2

benchmarkFunction · 0.70
vmap_recipe.pyFile · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected