MCPcopy 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
95def f(x):
96 return x * x
97
98x = torch.randn(5, requires_grad=True)
99y = f(f(f(x)))

Callers 2

unpackFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected