fix vec monitor infos

This commit is contained in:
Christopher Hesse
2019-04-03 16:28:29 -07:00
committed by Peter Zhokhov
parent 0a48a1fda9
commit 376fd88bb8

View File

@@ -33,7 +33,7 @@ class VecMonitor(VecEnvWrapper):
self.eprets += rews
self.eplens += 1
newinfos = infos[:]
newinfos = list(infos[:])
for i in range(len(dones)):
if dones[i]:
info = infos[i].copy()