MCPcopy Create free account
hub / github.com/Kaggle/docker-python / forward

Method forward

tests/test_pytorch_lightning.py:40–41  ·  view source on GitHub ↗
(self, x)

Source from the content-addressed store, hash-verified

38 self.l1 = torch.nn.Linear(28 * 28, 10)
39
40 def forward(self, x):
41 return F.relu(self.l1(x.view(x.size(0), -1)))
42
43 def training_step(self, batch, batch_idx):
44 x, y = batch

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected