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

Method forward

intermediate_source/torch_compile_tutorial.py:125–126  ·  view source on GitHub ↗
(self, x)

Source from the content-addressed store, hash-verified

123 self.lin = torch.nn.Linear(3, 3)
124
125 def forward(self, x):
126 return torch.nn.functional.relu(self.lin(x))
127
128
129mod1 = MyModule()

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected