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

Why do you use update collection? #7

Open
IPNUISTlegal opened this issue Aug 11, 2018 · 0 comments
Open

Why do you use update collection? #7

IPNUISTlegal opened this issue Aug 11, 2018 · 0 comments

Comments

@IPNUISTlegal
Copy link

While skimming through your code, I don't understand why do you need update_collection variable here,
https://github.com/minhnhat93/tf-SNDCGAN/blob/master/train.py#L39

If i don't add update collection in the code.
just write like below

    with tf.control_dependencies([u.assign(u_hat)]):
        w_norm = tf.reshape(w_norm, w_shape)

d_real and d_loss both use the above procedure.
Is there anything wrong?
thx

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

1 participant