Skip to content

Commit f4c4d6c

Browse files
skrish13soumith
authored andcommitted
Update squeezenet.py (#172)
changed a small mistake.
1 parent cbb05c5 commit f4c4d6c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

torchvision/models/squeezenet.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ def __init__(self, version=1.0, num_classes=1000):
7878
Fire(512, 64, 256, 256),
7979
)
8080
# Final convolution is initialized differently form the rest
81-
final_conv = nn.Conv2d(512, num_classes, kernel_size=1)
81+
final_conv = nn.Conv2d(512, self.num_classes, kernel_size=1)
8282
self.classifier = nn.Sequential(
8383
nn.Dropout(p=0.5),
8484
final_conv,

0 commit comments

Comments
 (0)