Skip to content

Commit c70e4b5

Browse files
authored
Fixes mean_entropy by dividing by num_updates (#65)
1 parent fc75c52 commit c70e4b5

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

rsl_rl/algorithms/ppo.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -361,6 +361,7 @@ def update(self): # noqa: C901
361361
num_updates = self.num_learning_epochs * self.num_mini_batches
362362
mean_value_loss /= num_updates
363363
mean_surrogate_loss /= num_updates
364+
mean_entropy /= num_updates
364365
# -- For RND
365366
if mean_rnd_loss is not None:
366367
mean_rnd_loss /= num_updates

0 commit comments

Comments
 (0)