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

Method forward

beginner_source/introyt/introyt1_tutorial.py:491–498  ·  view source on GitHub ↗
(self, x)

Source from the content-addressed store, hash-verified

489 self.fc3 = nn.Linear(84, 10)
490
491 def forward(self, x):
492 x = self.pool(F.relu(self.conv1(x)))
493 x = self.pool(F.relu(self.conv2(x)))
494 x = x.view(-1, 16 * 5 * 5)
495 x = F.relu(self.fc1(x))
496 x = F.relu(self.fc2(x))
497 x = self.fc3(x)
498 return x
499
500
501net = Net()

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected