Lizhi-sjtu / DRL-code-pytorch

Concise pytorch implements of DRL algorithms, including REINFORCE, A2C, DQN, PPO(discrete and continuous), DDPG, TD3, SAC.
MIT License
1.1k stars 179 forks source link

SAC-continuous.py中的log_std #8

Open jsdd25 opened 1 year ago

jsdd25 commented 1 year ago

您好!请教一个问题。请问在程序SAC-continuous.py中,您把log_std限制在[-20,2]之间log_std = torch.clamp(log_std, -20, 2)。请问这样做的意义是什么?-20和2是怎么来的?非常感谢!