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