Fix twin q bug (#4108)

This commit is contained in:
Jones Wong
2019-02-22 02:47:01 +08:00
committed by Eric Liang
parent 94eaaed197
commit acbe0b4e5f
@@ -147,7 +147,7 @@ class ActorCriticLoss(object):
q_t_selected = tf.squeeze(q_t, axis=len(q_t.shape) - 1)
if twin_q:
twin_q_t_selected = tf.squeeze(q_t, axis=len(q_t.shape) - 1)
twin_q_t_selected = tf.squeeze(twin_q_t, axis=len(q_t.shape) - 1)
q_tp1 = tf.minimum(q_tp1, twin_q_tp1)
q_tp1_best = tf.squeeze(input=q_tp1, axis=len(q_tp1.shape) - 1)