Skip to content

Commit c94a158

Browse files
taylanbilsoumith
authored andcommitted
typo fix: ouput -> output (#1034)
I grepped the repo for Ouputs and these were the only occurences
1 parent fefe118 commit c94a158

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

torchvision/models/googlenet.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
'googlenet': 'https://download.pytorch.org/models/googlenet-1378be20.pth',
1313
}
1414

15-
_GoogLeNetOuputs = namedtuple('GoogLeNetOuputs', ['logits', 'aux_logits2', 'aux_logits1'])
15+
_GoogLeNetOutputs = namedtuple('GoogLeNetOutputs', ['logits', 'aux_logits2', 'aux_logits1'])
1616

1717

1818
def googlenet(pretrained=False, progress=True, **kwargs):
@@ -157,7 +157,7 @@ def forward(self, x):
157157
x = self.fc(x)
158158
# N x 1000 (num_classes)
159159
if self.training and self.aux_logits:
160-
return _GoogLeNetOuputs(x, aux2, aux1)
160+
return _GoogLeNetOutputs(x, aux2, aux1)
161161
return x
162162

163163

torchvision/models/inception.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
'inception_v3_google': 'https://download.pytorch.org/models/inception_v3_google-1a9a5a14.pth',
1414
}
1515

16-
_InceptionOuputs = namedtuple('InceptionOuputs', ['logits', 'aux_logits'])
16+
_InceptionOutputs = namedtuple('InceptionOutputs', ['logits', 'aux_logits'])
1717

1818

1919
def inception_v3(pretrained=False, progress=True, **kwargs):
@@ -147,7 +147,7 @@ def forward(self, x):
147147
x = self.fc(x)
148148
# N x 1000 (num_classes)
149149
if self.training and self.aux_logits:
150-
return _InceptionOuputs(x, aux)
150+
return _InceptionOutputs(x, aux)
151151
return x
152152

153153

0 commit comments

Comments
 (0)