def plot_loss(losses):
    plt.figure(figsize=(10, 8))
    plt.plot(losses['g'], label='generative loss')
    plt.plot(losses['d'], label='discriminitive loss')
    plt.legend()
    plt.show()
def plot_loss(losses):
    plt.figure(figsize=(10, 8))
    plt.plot(losses['g'], label='generative loss')
    plt.plot(losses['d'], label='discriminitive loss')
    plt.legend()
    plt.show()