Skip to content

Commit

Permalink
typo fix: ouput -> output (#1034)
Browse files Browse the repository at this point in the history
I grepped the repo for Ouputs and these were the only occurences
  • Loading branch information
taylanbil authored and soumith committed Jun 18, 2019
1 parent fefe118 commit c94a158
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions torchvision/models/googlenet.py
Expand Up @@ -12,7 +12,7 @@
'googlenet': 'https://download.pytorch.org/models/googlenet-1378be20.pth',
}

_GoogLeNetOuputs = namedtuple('GoogLeNetOuputs', ['logits', 'aux_logits2', 'aux_logits1'])
_GoogLeNetOutputs = namedtuple('GoogLeNetOutputs', ['logits', 'aux_logits2', 'aux_logits1'])


def googlenet(pretrained=False, progress=True, **kwargs):
Expand Down Expand Up @@ -157,7 +157,7 @@ def forward(self, x):
x = self.fc(x)
# N x 1000 (num_classes)
if self.training and self.aux_logits:
return _GoogLeNetOuputs(x, aux2, aux1)
return _GoogLeNetOutputs(x, aux2, aux1)
return x


Expand Down
4 changes: 2 additions & 2 deletions torchvision/models/inception.py
Expand Up @@ -13,7 +13,7 @@
'inception_v3_google': 'https://download.pytorch.org/models/inception_v3_google-1a9a5a14.pth',
}

_InceptionOuputs = namedtuple('InceptionOuputs', ['logits', 'aux_logits'])
_InceptionOutputs = namedtuple('InceptionOutputs', ['logits', 'aux_logits'])


def inception_v3(pretrained=False, progress=True, **kwargs):
Expand Down Expand Up @@ -147,7 +147,7 @@ def forward(self, x):
x = self.fc(x)
# N x 1000 (num_classes)
if self.training and self.aux_logits:
return _InceptionOuputs(x, aux)
return _InceptionOutputs(x, aux)
return x


Expand Down

0 comments on commit c94a158

Please sign in to comment.