Fixed error on clip_range None
This commit is contained in:
parent
e3f4c511bf
commit
252710489e
@ -186,6 +186,7 @@ class TRPL(BetterOnPolicyAlgorithm):
|
||||
super()._setup_model()
|
||||
|
||||
# Initialize schedules for policy/value clipping
|
||||
if self.clip_range is not None:
|
||||
self.clip_range = get_schedule_fn(self.clip_range)
|
||||
if self.clip_range_vf is not None:
|
||||
if isinstance(self.clip_range_vf, (float, int)):
|
||||
|
Loading…
Reference in New Issue
Block a user