(self, x)
| 78 | self.fc3 = nn.Linear(84, 10) |
| 79 | |
| 80 | def forward(self, x): |
| 81 | x = self.pool1(F.relu(self.conv1(x))) |
| 82 | x = self.pool2(F.relu(self.conv2(x))) |
| 83 | x = x.view(-1, 16 * 5 * 5) |
| 84 | x = F.relu(self.fc1(x)) |
| 85 | x = F.relu(self.fc2(x)) |
| 86 | x = self.fc3(x) |
| 87 | return x |
| 88 | |
| 89 | # 定义权值初始化 |
| 90 | def initialize_weights(self): |
nothing calls this directly
no outgoing calls
no test coverage detected