Commit d5347856 authored by Vitor Finotti Ferreira's avatar Vitor Finotti Ferreira Committed by Soumith Chintala
Browse files

Auto calculating return dimension of squeezenet forward method (#884)

parent 0c575ace
......@@ -99,7 +99,7 @@ class SqueezeNet(nn.Module):
def forward(self, x):
x = self.features(x)
x = self.classifier(x)
return x.view(x.size(0), self.num_classes)
return x.view(x.size(0), -1)
def _squeezenet(version, pretrained, progress, **kwargs):
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment