mirror of
https://github.com/wassname/ray.git
synced 2026-08-03 13:10:57 +08:00
(Bug Fix): Remove the extra 0.5 in the Diagonal Gaussian entropy (#6475)
This commit is contained in:
committed by
Eric Liang
parent
ad4da17899
commit
3cb499632e
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user