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

Method forward

recipes_source/debug_mode_tutorial.py:251–252  ·  view source on GitHub ↗
(self, x)

Source from the content-addressed store, hash-verified

249 self.l2 = torch.nn.Linear(4, 4)
250
251 def forward(self, x):
252 return self.l2(self.l1(x))
253
254class Bar(torch.nn.Module):
255 def __init__(self):

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected