Denys88 / rl_games

RL implementations
MIT License
800 stars 135 forks source link

question about init_dones tensor in a2c_common #277

Open WSYANGSX opened 3 months ago

WSYANGSX commented 3 months ago

hello! When I was reading a2ccommon source code. I find a question. Why we need to initialize self.dones tensor ones? That will mark first translation (s,a,s,r, done=1). I don't know if this is a mistake. Or I don't understand the code logic correctly. image