【发布时间】:2018-12-14 02:35:40
【问题描述】:
张量流中tf.control_dependencies(tf.get_collection(tf.GraphKeys.UPDATE_OPS))的用途是什么?
更多上下文:
optimizer = tf.train.AdamOptimizer(FLAGS.learning_rate)
with tf.control_dependencies(tf.get_collection(tf.GraphKeys.UPDATE_OPS)):
train_op = optimizer.minimize(loss_fn, var_list=tf.trainable_variables())
【问题讨论】:
-
这段代码在batch_normalization中吗?
标签: python tensorflow deep-learning