Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix bug of __getitem__() in ExtendedTimeStep #1

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

TaoHuang13
Copy link

@TaoHuang13 TaoHuang13 commented Feb 24, 2022

Hi @MishaLaskin. Thanks for sharing your code@ I have found a bug when running the pertaining script.

At the line 49 value = time_step[spec.name] in replay_buffer.py, we have an error that return getattr(self, attr) at the line 30 in dmc.py will be called twice. This leads to an error where the second call will take as input attribute an int-type attr. It is not so clear about the exact reason for this issue, but I guess it may come from the inheritance of class ExtendedTimeStep. It can be solved by deleting such inheritance and writing an explicit __init__() function. Hope it helps:)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant