File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -104,10 +104,10 @@ main_loss = 0.5 * tf.reduce_mean(squared_error) + tf.reduce_mean(bits)
104104# Minimize loss and auxiliary loss, and execute update op.
105105main_optimizer = tf.train.AdamOptimizer(learning_rate = 1e-4 )
106106main_step = optimizer.minimize(main_loss)
107- # 1e-2 is a good starting point for the learning rate of the auxiliary loss,
107+ # 1e-3 is a good starting point for the learning rate of the auxiliary loss,
108108# assuming Adam is used.
109- aux_optimizer = tf.train.AdamOptimizer(learning_rate = 1e-2 )
110- aux_step = optimizer .minimize(entropy_bottleneck.losses[0 ])
109+ aux_optimizer = tf.train.AdamOptimizer(learning_rate = 1e-3 )
110+ aux_step = aux_optimizer .minimize(entropy_bottleneck.losses[0 ])
111111step = tf.group(main_step, aux_step, entropy_bottleneck.updates[0 ])
112112```
113113
You can’t perform that action at this time.
0 commit comments