More PCA related fixes
This commit is contained in:
parent
81e223183a
commit
f3683afb86
@ -677,7 +677,7 @@ class ActorCriticPolicy(BasePolicy):
|
|||||||
elif isinstance(self.action_dist, StateDependentNoiseDistribution):
|
elif isinstance(self.action_dist, StateDependentNoiseDistribution):
|
||||||
return self.action_dist.proba_distribution(mean_actions, self.log_std, latent_pi)
|
return self.action_dist.proba_distribution(mean_actions, self.log_std, latent_pi)
|
||||||
elif isinstance(self.action_dist, PCA_Distribution):
|
elif isinstance(self.action_dist, PCA_Distribution):
|
||||||
return self.action_dist.proba_distribution(mean_actions, self.log_std)
|
return self.action_dist.proba_distribution(mean_actions, th.ones_like(mean_actions) * self.log_std.exp())
|
||||||
else:
|
else:
|
||||||
raise ValueError("Invalid action distribution")
|
raise ValueError("Invalid action distribution")
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user