We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8068577 commit 2c8cc06Copy full SHA for 2c8cc06
1 file changed
rsl_rl/utils/logger.py
@@ -158,7 +158,7 @@ def log(
158
extras_string = ""
159
if self.ep_extras:
160
# Iterate over all keys in the episode info dictionary
161
- for key in self.ep_extras[0]:
+ for key in {k for ep_info in self.ep_extras for k in ep_info}:
162
infotensor = torch.tensor([], device=self.device)
163
# Iterate over all steps
164
for ep_info in self.ep_extras:
0 commit comments