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

Function outer

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

Source from the content-addressed store, hash-verified

100
101@torch.compile
102def outer(x, y):
103 a = inner(x)
104 b = torch.cos(y)
105 return a + b
106
107
108print(outer(torch.randn(3, 3), torch.randn(3, 3)))

Callers 1

Calls 1

innerFunction · 0.70

Tested by

no test coverage detected