Fix another issue when clip_range=None
This commit is contained in:
parent
252710489e
commit
54b841654b
@ -203,6 +203,7 @@ class TRPL(BetterOnPolicyAlgorithm):
|
||||
# Update optimizer learning rate
|
||||
self._update_learning_rate(self.policy.optimizer)
|
||||
# Compute current clip range
|
||||
if self.clip_range is not None:
|
||||
clip_range = self.clip_range(self._current_progress_remaining)
|
||||
# Optional: clip range for the value function
|
||||
if self.clip_range_vf is not None:
|
||||
|
Loading…
Reference in New Issue
Block a user