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

Method forward

beginner_source/introyt/tensorboardyt_tutorial.py:168–175  ·  view source on GitHub ↗
(self, x)

Source from the content-addressed store, hash-verified

166 self.fc3 = nn.Linear(84, 10)
167
168 def forward(self, x):
169 x = self.pool(F.relu(self.conv1(x)))
170 x = self.pool(F.relu(self.conv2(x)))
171 x = x.view(-1, 16 * 4 * 4)
172 x = F.relu(self.fc1(x))
173 x = F.relu(self.fc2(x))
174 x = self.fc3(x)
175 return x
176
177
178net = Net()

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected