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

Method forward

beginner_source/introyt/trainingyt.py:147–154  ·  view source on GitHub ↗
(self, x)

Source from the content-addressed store, hash-verified

145 self.fc3 = nn.Linear(84, 10)
146
147 def forward(self, x):
148 x = self.pool(F.relu(self.conv1(x)))
149 x = self.pool(F.relu(self.conv2(x)))
150 x = x.view(-1, 16 * 4 * 4)
151 x = F.relu(self.fc1(x))
152 x = F.relu(self.fc2(x))
153 x = self.fc3(x)
154 return x
155
156
157model = GarmentClassifier()

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected