(Bug Fix): Remove the extra 0.5 in the Diagonal Gaussian entropy (#6475)

This commit is contained in:
Eugene Vinitsky
2019-12-13 14:42:30 -08:00
committed by Eric Liang
parent ad4da17899
commit 3cb499632e
+1 -1
View File
@@ -166,7 +166,7 @@ class DiagGaussian(TFActionDistribution):
@override(ActionDistribution)
def entropy(self):
return tf.reduce_sum(
.5 * self.log_std + .5 * np.log(2.0 * np.pi * np.e),
self.log_std + .5 * np.log(2.0 * np.pi * np.e),
reduction_indices=[1])
@override(TFActionDistribution)