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

Method forward

fx/replace_op.py:33–34  ·  view source on GitHub ↗
(self, x, y)

Source from the content-addressed store, hash-verified

31# Sample module
32class M(torch.nn.Module):
33 def forward(self, x, y):
34 return x + y, torch.add(x, y), x.add(y)
35
36# Symbolically trace an instance of the module
37traced = symbolic_trace(M())

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected