gan loss