bugfix: policy_kwargs can be None
This commit is contained in:
parent
9db4e93fa0
commit
5fa351db22
@ -114,6 +114,8 @@ class TRPL(BetterOnPolicyAlgorithm):
|
|||||||
_init_setup_model: bool = True,
|
_init_setup_model: bool = True,
|
||||||
):
|
):
|
||||||
self.projection_class = castProjection(projection_class)
|
self.projection_class = castProjection(projection_class)
|
||||||
|
if projection_kwargs is None:
|
||||||
|
projection_kwargs = {}
|
||||||
self.projection_kwargs = projection_kwargs
|
self.projection_kwargs = projection_kwargs
|
||||||
self.projection = self.projection_class(**self.projection_kwargs)
|
self.projection = self.projection_class(**self.projection_kwargs)
|
||||||
if policy_kwargs is None:
|
if policy_kwargs is None:
|
||||||
|
Loading…
Reference in New Issue
Block a user