Define loss_object before usage in generator_loss function
Define loss_object before usage in generator_loss function

I was confused by this reference to an as-yet-undefined variable. It's not an error as long as the function is not called, but it's bad style
tensorflow/docs,tensorflow/docs,tensorflow/docs