Skip to content

Commit

Permalink
Removing extra flatten (#809)
Browse files Browse the repository at this point in the history
Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
  • Loading branch information
Benjamin-Etheredge and mergify[bot] authored May 4, 2022
1 parent 3842cf3 commit 72614f0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pl_bolts/models/gans/basic/basic_gan_module.py
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ def generator_loss(self, x):
def discriminator_loss(self, x):
# train discriminator on real
b = x.size(0)
x_real = x.view(b, -1)
x_real = x
y_real = torch.ones(b, 1, device=self.device)

# calculate real score
Expand Down

0 comments on commit 72614f0

Please sign in to comment.