Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Losses variable is not defined in the train function #5

Open
sweetatyagiaz opened this issue Oct 29, 2018 · 1 comment
Open

Losses variable is not defined in the train function #5

sweetatyagiaz opened this issue Oct 29, 2018 · 1 comment

Comments

@sweetatyagiaz
Copy link

Hi I was running this code on the same Cat dataset, everything is good but I am getting an error regarding losses variable return by the train function.
Can you please fix this error.
I am attaching the error report below

NameError Traceback (most recent call last)
in ()
4 with tf.Graph().as_default():
5 losses, samples = train(epochs, batch_size, z_dim, learning_rate_D, learning_rate_G, beta1,
----> 6 dataset.get_batches, dataset.shape, dataset.image_mode, alpha)

in train(epoch_count, batch_size, z_dim, learning_rate_D, learning_rate_G, beta1, get_batches, data_shape, data_image_mode, alpha)
81
82
---> 83 return losses, samples

NameError: name 'losses' is not defined

@henryishuman
Copy link

Was wondering if this was ever resolved?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants