Backup DreamWaQ rslrl stability fixes
This commit is contained in:
@@ -28,7 +28,7 @@ class DwaqInfer(torch.nn.Module):
|
||||
"""obs: (N,45), obs_history: (N,225) → action: (N,12)"""
|
||||
code = self.vae.deterministic_code(obs_history) # (N,19)
|
||||
latent = torch.cat([code, obs], dim=-1) # (N,64)
|
||||
return self.actor_mlp(latent)
|
||||
return torch.clamp(self.actor_mlp(latent), -4.0, 4.0)
|
||||
|
||||
|
||||
def main():
|
||||
|
||||
Reference in New Issue
Block a user