MCPcopy Create free account
hub / github.com/pytorch/examples / M

Class M

fx/wrap_output_dynamically.py:21–27  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

19
20# Sample module
21class M(torch.nn.Module):
22 def __init__(self):
23 super().__init__()
24
25 def forward(self, x, y):
26 y = torch.cat([x, y])
27 return y
28
29# Symbolically trace an instance of `M`
30traced = symbolic_trace(M())

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected