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

Method forward

fx/inline_function.py:36–37  ·  view source on GitHub ↗
(self, x)

Source from the content-addressed store, hash-verified

34 self.relu = torch.nn.ReLU()
35
36 def forward(self, x):
37 return self.relu(x) + 1.0
38
39# Symbolically trace an instance of `M`. After tracing, `self.relu` is
40# represented as a `call_module` Node. The full operation in the

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected