From c94a158570ca36f9bf4ce4b83a78026b9adbb842 Mon Sep 17 00:00:00 2001 From: taylanbil Date: Mon, 17 Jun 2019 18:18:05 -0700 Subject: [PATCH] typo fix: ouput -> output (#1034) I grepped the repo for Ouputs and these were the only occurences --- torchvision/models/googlenet.py | 4 ++-- torchvision/models/inception.py | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/torchvision/models/googlenet.py b/torchvision/models/googlenet.py index 0889cd37ba8..cac36458847 100644 --- a/torchvision/models/googlenet.py +++ b/torchvision/models/googlenet.py @@ -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): @@ -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 diff --git a/torchvision/models/inception.py b/torchvision/models/inception.py index 33117223423..17be27747c0 100644 --- a/torchvision/models/inception.py +++ b/torchvision/models/inception.py @@ -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): @@ -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