1. optimizer.minimize 与 global_step

optimizer = tf.train.**(learning_rate)
global_step = tf.Variable(0, trainable=False, name='global_step')
train_op = optimizer.minimize(loss, global_step=global_step)
posted on 2017-03-25 23:02  未雨愁眸  阅读(170)  评论(0编辑  收藏  举报