Allow reduced latent sde dim
This commit is contained in:
@@ -348,6 +348,7 @@ class UniversalGaussianDistribution(SB3_Distribution):
|
||||
|
||||
def get_noise(self, latent_sde: th.Tensor) -> th.Tensor:
|
||||
latent_sde = latent_sde if self.learn_features else latent_sde.detach()
|
||||
latent_sde = latent_sde[..., -self.latent_sde_dim:]
|
||||
latent_sde = th.nn.functional.normalize(latent_sde, dim=-1)
|
||||
# Default case: only one exploration matrix
|
||||
if len(latent_sde) == 1 or len(latent_sde) != len(self.exploration_matrices):
|
||||
|
||||
Reference in New Issue
Block a user