Another issue with clip_range=None

This commit is contained in:
Dominik Moritz Roth 2024-01-23 18:32:22 +01:00
parent 8bbb01504b
commit 53505a80ad

View File

@ -330,6 +330,7 @@ class TRPL(BetterOnPolicyAlgorithm):
self.logger.record("train/std", th.exp(self.policy.log_std).mean().item())
self.logger.record("train/n_updates", self._n_updates, exclude="tensorboard")
if self.clip_range is not None:
self.logger.record("train/clip_range", clip_range)
if self.clip_range_vf is not None:
self.logger.record("train/clip_range_vf", clip_range_vf)