Fixed error on clip_range None
This commit is contained in:
@@ -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)):
|
||||
|
||||
Reference in New Issue
Block a user