Skip to content

Commit bb7f451

Browse files
author
Johannes Ballé
committed
Small fix for the EntropyBottleneck example.
1 parent 1b18a7e commit bb7f451

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff 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.
105105
main_optimizer = tf.train.AdamOptimizer(learning_rate=1e-4)
106106
main_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])
111111
step = tf.group(main_step, aux_step, entropy_bottleneck.updates[0])
112112
```
113113

0 commit comments

Comments
 (0)