MCPcopy Index your code
hub / github.com/pytorch/tutorials / foo3

Function foo3

intermediate_source/torch_compile_tutorial.py:146–150  ·  view source on GitHub ↗
(x)

Source from the content-addressed store, hash-verified

144
145
146def foo3(x):
147 y = x + 1
148 z = torch.nn.functional.relu(y)
149 u = z * 2
150 return u
151
152
153opt_foo3 = torch.compile(foo3)

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected