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

Control dependencies in CycleGAN optimizer #115

Open
VladAndronik opened this issue Dec 27, 2019 · 0 comments
Open

Control dependencies in CycleGAN optimizer #115

VladAndronik opened this issue Dec 27, 2019 · 0 comments

Comments

@VladAndronik
Copy link

Thank you for your contribution, I learned much from it. But there is a thing that I can not come up with.
There is a code in optimize method in model.py, where:

with tf.control_dependencies([G_optimizer, D_Y_optimizer, F_optimizer, D_X_optimizer]): return tf.no_op(name='optimizers')

What the control dependencies actually mean here? And why do we need tf.no_op? What the side-effect could arise if we drop it?
Thanks in advance!

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