forked from mrq/DL-Art-School
Get proper contiguous view for backwards compatibility
This commit is contained in:
parent
2def96203e
commit
f8b67f134b
|
@ -57,7 +57,7 @@ class Discriminator_VGG_128(nn.Module):
|
|||
fea = self.lrelu(self.bn4_0(self.conv4_0(fea)))
|
||||
fea = self.lrelu(self.bn4_1(self.conv4_1(fea)))
|
||||
|
||||
fea = fea.view(fea.size(0), -1)
|
||||
fea = fea.contiguous().view(fea.size(0), -1)
|
||||
fea = self.lrelu(self.linear1(fea))
|
||||
out = self.linear2(fea)
|
||||
return out
|
||||
|
|
Loading…
Reference in New Issue
Block a user