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

Function foo

intermediate_source/torch_compile_tutorial.py:73–76  ·  view source on GitHub ↗
(x, y)

Source from the content-addressed store, hash-verified

71
72
73def foo(x, y):
74 a = torch.sin(x)
75 b = torch.cos(y)
76 return a + b
77
78
79opt_foo1 = torch.compile(foo)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected