Skip to content

Instantly share code, notes, and snippets.

@bh1995
Created June 30, 2020 10:02
Show Gist options
  • Save bh1995/879b2750f630807b907dac111c6de4c5 to your computer and use it in GitHub Desktop.
Save bh1995/879b2750f630807b907dac111c6de4c5 to your computer and use it in GitHub Desktop.
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