Hard to debug IndexError #28
-
Hey People,
The replay buffer is set up to use next_of and stack_compression for atari environments.
The problem might lie in there or not. But you don't need to worry about my code much, what I would like to know is what the error message given at the top could be indicative of. So that I might know what to look for to debug this or find a way to reproduce the error reliably. For example, this error means that I pass an empty dictionary to the buffer or something like that. I would be very happy if someone had an Idea what this index out-of-bound error could mean. Btw this library is immensely useful to me as I'm currently building my own Reinforcement Learning Framework for my research. Thank you for making this thing. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 6 replies
-
Hi @Sebastian-Griesbach Can you give us all the arguments you passed to the constructor of the replay buffer? import cpprb
rb = cpprb.ReplayBuffer(
# here
) Out of range might be a bug. |
Beta Was this translation helpful? Give feedback.
-
I spent a bit more time and found a minimal code example to reproduce the error:
The error occurs exactly at the 16th iteration of the adding loop. regardless of if you call .on_episode_end() in between or not. I hope this helps with the investigation. |
Beta Was this translation helpful? Give feedback.
@Sebastian-Griesbach
We released cpprb v10.7.2 with the fix for this bug.
Please try it.
Thank you for your help.