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

Method forward

fx/wrap_output_dynamically.py:25–27  ·  view source on GitHub ↗
(self, x, y)

Source from the content-addressed store, hash-verified

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

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected