This commit is contained in:
Glenn Jocher 2018-12-24 14:33:05 +01:00
parent 5403581e38
commit b6ff9cad79
1 changed files with 1 additions and 1 deletions

View File

@ -89,7 +89,7 @@ class Upsample(torch.nn.Module):
self.mode = mode
def forward(self, x):
return torch.nn.functional.interpolate(x, scale_factor=self.scale_factor, mode=self.mode)
return nn.functional.interpolate(x, scale_factor=self.scale_factor, mode=self.mode)
class YOLOLayer(nn.Module):