def forward(self, x): x = F.dropout(x, training=self.training) x = self.conv(x) x = self.avgpool(x) x = F.log_softmax(x) x = x.squeeze(dim=3).squeeze(dim=2) return x