Fixed PCA bug
This commit is contained in:
parent
ea4b9851d8
commit
a1df15f7bc
@ -213,7 +213,7 @@ class GaussianRolloutCollectorAuxclass():
|
||||
with th.no_grad():
|
||||
# Convert to pytorch tensor or to TensorDict
|
||||
obs_tensor = obs_as_tensor(self._last_obs, self.device)
|
||||
if 'use_pca' in self.policy and self.policy['use_pca']:
|
||||
if self.policy['use_pca']:
|
||||
actions, values, log_probs = self.policy(obs_tensor, trajectory=self.get_past_trajectories())
|
||||
else:
|
||||
actions, values, log_probs = self.policy(obs_tensor)
|
||||
|
Loading…
Reference in New Issue
Block a user