Thanks for sharing your code, but I didn't understand where is the generator training step and Loss function.