Created
June 30, 2020 10:02
-
-
Save bh1995/879b2750f630807b907dac111c6de4c5 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def LSGAN_D(real, fake): | |
return (torch.mean((real - 1)**2) + torch.mean(fake**2)) | |
def LSGAN_G(fake): | |
return torch.mean((fake - 1)**2) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment