CycleGAN-TensorFlow icon indicating copy to clipboard operation
CycleGAN-TensorFlow copied to clipboard

Control dependencies in CycleGAN optimizer

Open VladAndronik opened this issue 5 years ago • 0 comments

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!

VladAndronik avatar Dec 27 '19 12:12 VladAndronik